Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Cpk value seems not correct for the one-sided specification when using the function of CapabilityAnaylsis #57

Open
KEWH4E opened this issue Jul 3, 2024 · 1 comment

Comments

@KEWH4E
Copy link

KEWH4E commented Jul 3, 2024

For example, when setting LSL=NULL as below, the calculated Cpk is 7.39. However, the correct Cpk should be 2.46. Could the author help to review the code?

CapabilityAnaylsis <-
ggplot(Process_Data, aes(x = Value)) + #init ggplot
geom_histogram(binwidth = .75, color="purple") + #make the histogram
stat_QC_Capability(
LSL=NULL, USL=37, #Specify LSL and USL
show.cap.summary = c("Cp", "Cpk", "Pp, "Ppk"), #selected summary
digits = 2, #report two digits
method="XmR") + #Use the XmR method
scale_x_continuous(expand = expand_scale(mult = c(0.15,.65))) #pad the X-axis
CapabilityAnaylsis

@KEWH4E
Copy link
Author

KEWH4E commented Jul 3, 2024

@kenithgrey Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant