Title: | Six Sigma Tools for Quality Control and Improvement |
---|---|
Description: | Functions and utilities to perform Statistical Analyses in the Six Sigma way. Through the DMAIC cycle (Define, Measure, Analyze, Improve, Control), you can manage several Quality Management studies: Gage R&R, Capability Analysis, Control Charts, Loss Function Analysis, etc. Data frames used in the books "Six Sigma with R" [ISBN 978-1-4614-3652-2] and "Quality Control with R" [ISBN 978-3-319-24046-6], are also included in the package. |
Authors: | Emilio L. Cano [aut, cre] |
Maintainer: | Emilio L. Cano <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.11.0.9000 |
Built: | 2025-03-03 04:34:11 UTC |
Source: | https://github.com/emilopezcano/sixsigma |
Function to compute prototype profile and confidence bands for a set of profiles (Phase I)
climProfiles( profiles, x = 1:nrow(profiles), smoothprof = FALSE, smoothlim = FALSE, alpha = 0.01 )
climProfiles( profiles, x = 1:nrow(profiles), smoothprof = FALSE, smoothlim = FALSE, alpha = 0.01 )
profiles |
Matrix with profiles in columns |
x |
Vector for the independent variable |
smoothprof |
regularize profiles? [FALSE] |
smoothlim |
regularize confidence bands? [FALSE] |
alpha |
limit for control limits [0.01] |
a matrix with three profiles: prototype and confidence bands
Javier M. Moguerza and Emilio L. Cano
Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.
wby.phase1 <- ss.data.wby[, 1:35] wb.limits <- climProfiles(profiles = wby.phase1, x = ss.data.wbx, smoothprof = FALSE, smoothlim = FALSE) plotProfiles(profiles = wby.phase1, x = ss.data.wbx, cLimits = wb.limits)
wby.phase1 <- ss.data.wby[, 1:35] wb.limits <- climProfiles(profiles = wby.phase1, x = ss.data.wbx, smoothprof = FALSE, smoothlim = FALSE) plotProfiles(profiles = wby.phase1, x = ss.data.wbx, cLimits = wb.limits)
Returns a list with information about the out-of-control profiles given a set of profiles and some control limits
outProfiles(profiles, x = 1:nrow(profiles), cLimits, tol = 0.5)
outProfiles(profiles, x = 1:nrow(profiles), cLimits, tol = 0.5)
profiles |
Matrix of profiles |
x |
Vector with the independent variable |
cLimits |
Matrix with the prototype and confidence bands profiles |
tol |
Tolerance (%) |
a list with the following elements:
labOut |
labels of the out-of-control profiles |
idOut |
ids of the out-of-control profiles |
pOut |
proportion of times the profile values are out of the limits |
Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.
wby.phase1 <- ss.data.wby[, 1:35] wb.limits <- climProfiles(profiles = wby.phase1, x = ss.data.wbx, smoothprof = TRUE, smoothlim = TRUE) wby.phase2 <- ss.data.wby[, 36:50] wb.out.phase2 <- outProfiles(profiles = wby.phase2, x = ss.data.wbx, cLimits = wb.limits, tol = 0.8) wb.out.phase2 plotProfiles(wby.phase2, x = ss.data.wbx, cLimits = wb.limits, outControl = wb.out.phase2$idOut, onlyout = TRUE)
wby.phase1 <- ss.data.wby[, 1:35] wb.limits <- climProfiles(profiles = wby.phase1, x = ss.data.wbx, smoothprof = TRUE, smoothlim = TRUE) wby.phase2 <- ss.data.wby[, 36:50] wb.out.phase2 <- outProfiles(profiles = wby.phase2, x = ss.data.wbx, cLimits = wb.limits, tol = 0.8) wb.out.phase2 plotProfiles(wby.phase2, x = ss.data.wbx, cLimits = wb.limits, outControl = wb.out.phase2$idOut, onlyout = TRUE)
Plots the proportion of times that each profile remains out of the confidence bands
plotControlProfiles(pOut, tol = 0.5)
plotControlProfiles(pOut, tol = 0.5)
pOut |
identifiers of profiles out of control |
tol |
tolerance for the proportion of times the value of the profile is out of control |
There is only graphical output
Javier M. Moguerza and Emilio L. Cano
Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.
wby.phase1 <- ss.data.wby[, 1:35] wb.limits <- climProfiles(profiles = wby.phase1, x = ss.data.wbx, smoothprof = TRUE, smoothlim = TRUE) wby.phase2 <- ss.data.wby[, 36:50] wb.out.phase2 <- outProfiles(profiles = wby.phase2, x = ss.data.wbx, cLimits = wb.limits, tol = 0.8) plotControlProfiles(wb.out.phase2$pOut, tol = 0.8)
wby.phase1 <- ss.data.wby[, 1:35] wb.limits <- climProfiles(profiles = wby.phase1, x = ss.data.wbx, smoothprof = TRUE, smoothlim = TRUE) wby.phase2 <- ss.data.wby[, 36:50] wb.out.phase2 <- outProfiles(profiles = wby.phase2, x = ss.data.wbx, cLimits = wb.limits, tol = 0.8) plotControlProfiles(wb.out.phase2$pOut, tol = 0.8)
Plot profiles and optionally control limits
plotProfiles( profiles, x = 1:nrow(profiles), cLimits = NULL, outControl = NULL, onlyout = FALSE )
plotProfiles( profiles, x = 1:nrow(profiles), cLimits = NULL, outControl = NULL, onlyout = FALSE )
profiles |
matrix with profiles in columns |
x |
vector with the independent variable |
cLimits |
matrix with three profiles: prototype and confidence bands (limits) |
outControl |
identifiers of out-of-control profiles |
onlyout |
plot only out-of-control profiles? [FALSE] |
Only graphical output with the profiles
Javier M. Moguerza and Emilio L. Cano
Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.
plotProfiles(profiles = ss.data.wby, x = ss.data.wbx)
plotProfiles(profiles = ss.data.wby, x = ss.data.wbx)
Six Sigma Tools for Quality and Process Improvement
This package contains functions and utilities to perform Statistical Analyses in the Six Sigma way.
Through the DMAIC cycle (Define, Measure, Analyze, Improve, Control), you can manage several Quality Management
studies: Gage R&R, Capability Analysis, Control Charts, Loss Function Analysis, etc. Data frames used in
"Six Sigma with R" (Springer, 2012) are also included in the package.
Use the package to perform Six Sigma Methodology tasks, throughout its
breakthrough strategy: Define, Measure, Analyze, Improve, Control (DMAIC)
Define: Process Map (ss.pMap), Cause and effect Diagram
(ss.ceDiag);
Measure: Gage R&R study (ss.rr); Capability Analysis (ss.study.ca);
Loss Function Analysis (ss.lfa)
Analyze: Confidence Intervals (ss.ci)
Control: Moving Average Control Chart
Soon: further functions
The current version includes Loss Function Analysis, Gage R&R Study, confidence intervals, Process Map and Cause-and-Effect diagram. We plan to regularly upload updated versions, with new functions and improving those previously deployed. The subsequent versions will cover tools for the whole cycle:
Define
Measure
Analyze
Improve
Control
Emilio L. Cano, Javier M. Moguerza, Mariano Prieto Corcoba and Andrés Redchuk;
Maintainer: Emilio L. Cano [email protected]
Allen, T. T. (2010) Introduction to Engineering Statistics and Lean Six Sigma - Statistical Quality Control and Design of Experiments and Systems (Second Edition ed.). London: Springer.
Box, G. (1991). Teaching engineers experimental design with a paper helicopter. Report 76, Center for Quality and Productivity Improvement. University of Wisconsin.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012. Six Sigma with R. Statistical Engineering for Process Improvement, Use R!, vol. 36. Springer, New York. https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
Cano, Emilio L., Moguerza, Javier M. and Prieto Corcoba, Andrés. 2015. Quality Control with R. An ISO Standards approach, Use R!, Springer, New York.
Chambers, J. M. (2008) Software for data analysis. Programming with R New York: Springer.
Montgomery, DC (2008) Introduction to Statistical Quality Control
(Sixth Edition). New York: Wiley&Sons
Wikipedia, https://en.wikipedia.org/wiki/Six_Sigma/
ss.pMap
, ss.rr
, ss.ceDiag
,
ss.ci
, ss.heli
, ss.lfa
This function takes a set of profiles and regularise them by means of a SVM
smoothProfiles( profiles, x = 1:nrow(profiles), svm.c = NULL, svm.eps = NULL, svm.gamma = NULL, parsvm.unique = TRUE )
smoothProfiles( profiles, x = 1:nrow(profiles), svm.c = NULL, svm.eps = NULL, svm.gamma = NULL, parsvm.unique = TRUE )
profiles |
Matrix of y values, one column per profile |
x |
Vector of predictive variable values, common to all profiles |
svm.c |
SVM parameter (cost) |
svm.eps |
SVM parameter (epsilon) |
svm.gamma |
SVM parameter (gamma) |
parsvm.unique |
Same parameters for all profiles? (logical [TRUE]) |
Regularized profiles
The package e1071
is needed in order to be able to use this function. SVM Parameters can be vectors of the same lenght as number of profiles, or a single value for all of them
Javier M. Moguerza and Emilio L. Cano
Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.
wby.smooth <- smoothProfiles(profiles = ss.data.wby, x = ss.data.wbx) plotProfiles(profiles = wby.smooth, x = ss.data.wbx)
wby.smooth <- smoothProfiles(profiles = ss.data.wby, x = ss.data.wbx) plotProfiles(profiles = wby.smooth, x = ss.data.wbx)
Computes the Yield, First Time Yield, Rolled Throughput Yield and Defects per Million Opportunities of a process.
ss.ca.yield(defects = 0, rework = 0, opportunities = 1)
ss.ca.yield(defects = 0, rework = 0, opportunities = 1)
defects |
A vector with the number of defects in each product/batch, ... |
rework |
A vector with the number of items/parts reworked |
opportunities |
A numeric value with the size or length of the product/batch |
The arguments defects and rework must have the same length.
Yield |
Number of good stuff / Total items |
FTY |
(Total - scrap - rework) / Total |
RTY |
prod(FTY) |
DPMO |
Defects per Million Opportunities |
Emilio L. Cano
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012. Six Sigma with R. Statistical Engineering for Process Improvement, Use R!, vol. 36. Springer, New York. https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
Gygi C, DeCarlo N, Williams B (2005) Six sigma for dummies. –For dummies, Wiley Pub.
ss.ca.yield(c(3,5,12),c(1,2,4),1915)
ss.ca.yield(c(3,5,12),c(1,2,4),1915)
Compute the Capability Indices of a process, Z (Sigma Score),
and
.
ss.ca.cp(x, LSL = NA, USL = NA, LT = FALSE, f.na.rm = TRUE, ci = FALSE, alpha = 0.05) ss.ca.cpk(x, LSL = NA, USL = NA, LT = FALSE, f.na.rm = TRUE, ci = FALSE, alpha = 0.05) ss.ca.z(x, LSL = NA, USL = NA, LT = FALSE, f.na.rm = TRUE)
ss.ca.cp(x, LSL = NA, USL = NA, LT = FALSE, f.na.rm = TRUE, ci = FALSE, alpha = 0.05) ss.ca.cpk(x, LSL = NA, USL = NA, LT = FALSE, f.na.rm = TRUE, ci = FALSE, alpha = 0.05) ss.ca.z(x, LSL = NA, USL = NA, LT = FALSE, f.na.rm = TRUE)
x |
A vector with the data of the process performance |
LSL |
Lower Specification Limit |
USL |
Upper Specification Limit |
LT |
Long Term data (TRUE/FALSE). Not used for the moment |
f.na.rm |
Remove NA data (TRUE/FALSE) |
ci |
If TRUE computes a Confidence Interval |
alpha |
Type I error ( |
A numeric value for the index, or a vector with the limits of the Confidence Interval
EL Cano
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012. Six Sigma with R. Statistical Engineering for Process Improvement, Use R!, vol. 36. Springer, New York. https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
Montgomery, DC (2008) Introduction to Statistical Quality Control
(Sixth Edition). New York: Wiley&Sons
ss.ca.cp(ss.data.ca$Volume,740, 760) ss.ca.cpk(ss.data.ca$Volume,740, 760) ss.ca.z(ss.data.ca$Volume,740,760)
ss.ca.cp(ss.data.ca$Volume,740, 760) ss.ca.cpk(ss.data.ca$Volume,740, 760) ss.ca.z(ss.data.ca$Volume,740,760)
Plot control charts
ss.cc(type, data, cdata, CTQ = names(data)[1], groups, climits, nsigmas = 3)
ss.cc(type, data, cdata, CTQ = names(data)[1], groups, climits, nsigmas = 3)
type |
Type of chart (see details) |
data |
data.frame with the process data. |
cdata |
Vector with the controlled process data to compute limits. |
CTQ |
Name of the column in the data.frame containing the CTQ. |
groups |
Name of the column in the data.frame containing the groups. |
climits |
Limits of the controlled process. It should contain three ordered values: lower limit, center line and upper limit. |
nsigmas |
Number of sigmas to compute the limits from the center line (default is 3) |
If control limits are provided, cdata
is dismissed and a message is
shown. If there are no control limits nor controlled data, the limits are
computed using data
.
Supported types of control charts:
mrMoving Range
A plot with the control chart, and a list with the following elements:
LCL |
Lower Control Limit |
CL |
Center Line |
UCL |
Upper Control Limit |
phase |
II when cdata or climits are provided. I otherwise. |
out |
Out of control points |
We have created this function since the qAnalyst
package has been
removed from CRAN
, and it was used in the "Six Sigma with R" book to
plot moving average control charts.
EL Cano
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012. Six Sigma with R. Statistical Engineering for Process Improvement, Use R!, vol. 36. Springer, New York. https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
ss.cc("mr", ss.data.pb1, CTQ = "pb.humidity") testout <- ss.data.pb1 testout[31,] <- list(31,17) ss.cc("mr", testout, CTQ = "pb.humidity")
ss.cc("mr", ss.data.pb1, CTQ = "pb.humidity") testout <- ss.data.pb1 testout[31,] <- list(31,17) ss.cc("mr", testout, CTQ = "pb.humidity")
These functions compute the constants d2, d3 and c4 to get estimators of the standard deviation to set control limits.
ss.cc.getd2(n = NA) ss.cc.getd3(n = NA) ss.cc.getc4(n = NA)
ss.cc.getd2(n = NA) ss.cc.getd3(n = NA) ss.cc.getc4(n = NA)
n |
Sample size |
A numeric value for the constant.
EL Cano
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012. Six Sigma with R. Statistical Engineering for Process Improvement, Use R!, vol. 36. Springer, New York. https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
ss.cc
ss.cc.getd2(20) ss.cc.getd3(20) ss.cc.getc4(20)
ss.cc.getd2(20) ss.cc.getd3(20) ss.cc.getc4(20)
Represents a Cause and Effect Diagram by cause group.
ss.ceDiag( effect, causes.gr, causes, main = "Six Sigma Cause-and-effect Diagram", sub, ss.col = c("#666666", "#BBBBBB", "#CCCCCC", "#DDDDDD", "#EEEEEE", "#FFFFFF", "#000000", "#000000") )
ss.ceDiag( effect, causes.gr, causes, main = "Six Sigma Cause-and-effect Diagram", sub, ss.col = c("#666666", "#BBBBBB", "#CCCCCC", "#DDDDDD", "#EEEEEE", "#FFFFFF", "#000000", "#000000") )
effect |
A short character string that represents the effect we want to analyse. |
causes.gr |
A vector of characters that represents the causes groups. |
causes |
A vector with lists that represents the individual causes for each |
main |
Main title for the diagram |
sub |
Subtitle for the diagram (recommended the Six Sigma project name) |
ss.col |
A vector of colors for a personalized drawing. At least five colors, sorted by descendant intensity |
The default value for ss.col is c("#666666", "#BBBBBB", "#CCCCCC", "#DDDDDD", "#EEEEEE", "#FFFFFF", "#000000", "#000000"), a grayscale style. You can pass any accepted colour string.
A drawing of the causes and effect with "fish-bone" shape
The cause and effect diagram is also known as "Ishikawa diagram", and has been widely used in Quality Management. It is one of the Seven Basic Tools of Quality.
EL Cano
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
Wikipedia, https://en.wikipedia.org/wiki/Ishikawa_diagram/
effect <- "Flight Time" causes.gr <- c("Operator", "Environment", "Tools", "Design", "Raw.Material", "Measure.Tool") causes <- vector(mode = "list", length = length(causes.gr)) causes[1] <- list(c("operator #1", "operator #2", "operator #3")) causes[2] <- list(c("height", "cleaning")) causes[3] <- list(c("scissors", "tape")) causes[4] <- list(c("rotor.length", "rotor.width2", "paperclip")) causes[5] <- list(c("thickness", "marks")) causes[6] <- list(c("calibrate", "model")) ss.ceDiag(effect, causes.gr, causes, sub = "Paper Helicopter Project")
effect <- "Flight Time" causes.gr <- c("Operator", "Environment", "Tools", "Design", "Raw.Material", "Measure.Tool") causes <- vector(mode = "list", length = length(causes.gr)) causes[1] <- list(c("operator #1", "operator #2", "operator #3")) causes[2] <- list(c("height", "cleaning")) causes[3] <- list(c("scissors", "tape")) causes[4] <- list(c("rotor.length", "rotor.width2", "paperclip")) causes[5] <- list(c("thickness", "marks")) causes[6] <- list(c("calibrate", "model")) ss.ceDiag(effect, causes.gr, causes, sub = "Paper Helicopter Project")
Computes a confidence interval for the mean of the variable (parameter or feature of the process), and prints the data, a histogram with a density line, the result of the Shapiro-Wilks normality test and a quantile-quantile plot.
ss.ci( x, sigma2 = NA, alpha = 0.05, data = NA, xname = "x", approx.z = FALSE, main = "Confidence Interval for the Mean", digits = 3, sub = "", ss.col = c("#666666", "#BBBBBB", "#CCCCCC", "#DDDDDD", "#EEEEEE", "#FFFFFF", "#000000", "#000000") )
ss.ci( x, sigma2 = NA, alpha = 0.05, data = NA, xname = "x", approx.z = FALSE, main = "Confidence Interval for the Mean", digits = 3, sub = "", ss.col = c("#666666", "#BBBBBB", "#CCCCCC", "#DDDDDD", "#EEEEEE", "#FFFFFF", "#000000", "#000000") )
x |
A numeric vector with the variable data |
sigma2 |
The population variance, if known |
alpha |
The eqn\alpha error used to compute the |
data |
The data frame containing the vector |
xname |
The name of the variable to be shown in the graph |
approx.z |
If TRUE it uses z statistic instead of t when sigma is unknown and sample size is greater than 30. The default is FALSE, change only if you want to compare with results obtained with the old-fashioned method mentioned in some books. |
main |
The main title for the graph |
digits |
Significant digits for output |
sub |
The subtitle for the graph (recommended: six sigma project name) |
ss.col |
A vector with colors |
When the population variance is known, or the size is greater than 30,
it uses z statistic. Otherwise, it is uses t statistic.
If the sample size is lower than 30, a warning is displayed so as to
verify normality.
The confidence Interval.
A graph with the figures, the Shapiro-Wilks test, and a histogram.
Thanks to the kind comments and suggestions from the anonymous reviewer of a tentative article.
EL Cano
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012. Six Sigma with R. Statistical Engineering for Process Improvement, Use R!, vol. 36. Springer, New York. https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
ss.ci(len, data=ss.data.strings, alpha = 0.05, sub = "Guitar Strings Test | String Length", xname = "Length")
ss.ci(len, data=ss.data.strings, alpha = 0.05, sub = "Guitar Strings Test | String Length", xname = "Length")
This is a simulated data set of 18 measurements of the voltage of batteries using different voltmeters.
data(ss.data.batteries)
data(ss.data.batteries)
A data frame with 18 observations on the following 4 variables.
voltmeter
a factor with levels 1
2
battery
a factor with levels 1
2
3
run
a factor with levels 1
2
3
voltage
a numeric vector
This data set is used in chapter 5 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.batteries) summary(ss.data.batteries) plot(voltage~voltmeter, data = ss.data.batteries)
data(ss.data.batteries) summary(ss.data.batteries) plot(voltage~voltmeter, data = ss.data.batteries)
This data set contains the number of errors detected in a set of bills and the name of the person in charge of the bill.
data("ss.data.bills")
data("ss.data.bills")
A data frame with 32 observations on the following 3 variables.
a numeric vector identifying a given bill
a character vector for the clerk responsible for the bill
a character vector with the number of errors in the bill
This data set illustrates concepts in the book “Quality Control with R”.
Table 6.1 in the reference below.
Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.
data(ss.data.bills) str(ss.data.bills) barplot(table(ss.data.bills$clerk), main = "number of invoices") aggregate(errors ~ clerk, ss.data.bills, sum)
data(ss.data.bills) str(ss.data.bills) barplot(table(ss.data.bills$clerk), main = "number of invoices") aggregate(errors ~ clerk, ss.data.bills, sum)
A data frame with 50 observations of the diameter of the bolts manufactured in a production line.
data(ss.data.bolts)
data(ss.data.bolts)
A data frame with 50 observations on the following variable.
diameter
a numeric vector with the diameter of the bolts
This data set is used in chapter 4 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.bolts) summary(ss.data.bolts) hist(ss.data.bolts$diameter)
data(ss.data.bolts) summary(ss.data.bolts) hist(ss.data.bolts$diameter)
The only field of the data is the volume measured in 20 bottles.
data(ss.data.ca)
data(ss.data.ca)
A data frame with 20 observations on the following variable.
Volume
a numeric vector (volume in cl
This data set is used in chapter 7 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.ca) summary(ss.data.ca) hist(ss.data.ca$Volume)
data(ss.data.ca) summary(ss.data.ca) hist(ss.data.ca$Volume)
This data set contains the density for 24 pellets.
data("ss.data.density")
data("ss.data.density")
A vector with 24 items for the density of a set of pellets (gr/cm$^3$).
This data set illustrates concepts in the book “Quality Control with R”.
Note that, in the book, the vector named pdensity
is directly created
and then used in the examples.
Table 1.2 in the reference below.
Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.
data(ss.data.density) str(ss.data.density) summary(ss.data.density)
data(ss.data.density) str(ss.data.density) summary(ss.data.density)
Experimental data for the scores given to a set of pizza doughs.
data(ss.data.doe1)
data(ss.data.doe1)
A data frame with 16 observations on the following 6 variables.
repl
Replication id
flour
Level of flour in the recipe (-
+
)
salt
Level of salt in the recipe (-
+
)
bakPow
Level of Baking Powder in the recipe (-
+
)
score
Scored assigned to the recipe
ord
Randomized order
This data set is used in chapter 11 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.doe1) summary(ss.data.doe1) lattice::bwplot(score ~ flour | salt + bakPow , data = ss.data.doe1, xlab = "Flour", strip = function(..., style) lattice::strip.default(..., strip.names=c(TRUE,TRUE)))
data(ss.data.doe1) summary(ss.data.doe1) lattice::bwplot(score ~ flour | salt + bakPow , data = ss.data.doe1, xlab = "Flour", strip = function(..., style) lattice::strip.default(..., strip.names=c(TRUE,TRUE)))
Experimental data for the scores given to a set of pizza doughs. Noise factors added for robust design.
data(ss.data.doe2)
data(ss.data.doe2)
A data frame with 64 observations on the following 7 variables.
repl
Replication id
flour
Level of flour in the recipe (-
+
)
salt
Level of salt in the recipe (-
+
)
bakPow
Level of Baking Powder in the recipe (-
+
)
temp
Level of temperature in preparation (-
+
)
time
Level of time in preparation (-
+
)
score
Scored assigned to the recipe
This data set is used in chapter 11 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.doe2) summary(ss.data.doe2) lattice::bwplot(score ~ temp | time, data = ss.data.doe2)
data(ss.data.doe2) summary(ss.data.doe2) lattice::bwplot(score ~ temp | time, data = ss.data.doe2)
A data frame with 18 observations of the amount of the CTQ compound in some pastries from a bakery. There are two runs for each combination of two factors (laboratory and batch).
data(ss.data.pastries)
data(ss.data.pastries)
A data frame with 18 observations on the following 4 variables.
lab
laboratory: a factor with levels 1
2
3
batch
batch: a factor with levels 1
2
3
run
identifies the run: a factor with levels 1
2
comp
proportion of the compound in the pastry: a numeric vector
This data set is used in chapter 5 exercises of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.pastries) summary(ss.data.pastries) lattice::xyplot(comp ~ lab | batch, data = ss.data.pastries)
data(ss.data.pastries) summary(ss.data.pastries) lattice::xyplot(comp ~ lab | batch, data = ss.data.pastries)
Humidity of 30 raw material used to make particle boards for individual control chart.
data(ss.data.pb1)
data(ss.data.pb1)
A data frame with 30 observations on the following 2 variables.
pb.group
Group id (distinct for each observation)
pb.humidity
Humidity of the particle board
This data set is used in chapter 12 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.pb1) summary(ss.data.pb1)
data(ss.data.pb1) summary(ss.data.pb1)
Humidity of 20 groups of size 5 of raw materials to make particle boards. For the mean and range control chart.
data(ss.data.pb2)
data(ss.data.pb2)
A data frame with 100 observations on the following 2 variables.
pb.group
a numeric vector
pb.humidity
a numeric vector
This data set is used in chapter 12 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.pb2) summary(ss.data.pb2)
data(ss.data.pb2) summary(ss.data.pb2)
Counts of raw materials stockouts during 22 weekdays in a month.
data(ss.data.pb3)
data(ss.data.pb3)
A data frame with 22 observations on the following 3 variables.
day
Day id
stockouts
Number of stockouts
orders
Number of orders
This data set is used in chapter 12 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.pb3) summary(ss.data.pb3)
data(ss.data.pb3) summary(ss.data.pb3)
Number of defects detected in an order of particle boards.
data(ss.data.pb4)
data(ss.data.pb4)
A data frame with 80 observations on the following 2 variables.
order
Order id
defects
Number of defects
This data set is used in chapter 12 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.pb4) summary(ss.data.pb4)
data(ss.data.pb4) summary(ss.data.pb4)
This data set contains data from a simulated process of printer cartridge filling.
data(ss.data.pc)
data(ss.data.pc)
A data frame with 24 observations on the following 6 variables.
pc.col
a factor with levels C
B
for the colour
pc.filler
a factor with levels 1
2
3
pc.volume
a numeric vector
pc.density
a numeric vector
pc.batch
a numeric vector
pc.op
a factor with levels A
B
C
D
for the operator
This data set is used in chapter 8 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.pc) summary(ss.data.pc)
data(ss.data.pc) summary(ss.data.pc)
This data set contains data from a simulated process of printer cartridges filling with complete replications.
data(ss.data.pc.big)
data(ss.data.pc.big)
A data frame with 72 observations on the following 5 variables,
filler
a factor with levels 1
2
3
batch
a factor with levels 1
2
3
4
col
a factor with levels B
C
operator
a factor with levels 1
2
3
volume
a numeric vector
This data set is used in chapter 8 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.pc.big) summary(ss.data.pc.big)
data(ss.data.pc.big) summary(ss.data.pc.big)
This data set contains data from a simulated process of printer cartridge filling. The dataframe contains defects by region of each type of cartridge.
data(ss.data.pc.r)
data(ss.data.pc.r)
A data frame with 5 observations on the following 4 variables.
pc.regions
a factor with levels region.1
region.2
region.3
region.4
region.5
pc.def.a
a numeric vector for defects type A
pc.def.b
a numeric vector for defects type B
pc.def
a numeric vector for total defects
This data set is used in chapter 8 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.pc.r) summary(ss.data.pc.r)
data(ss.data.pc.r) summary(ss.data.pc.r)
Example data for Measure phase of the Six Sigma methodology.
data(ss.data.rr)
data(ss.data.rr)
A data frame with 27 observations on the following 5 variables.
prototype
a factor with levels prot #1
prot #2
prot #3
operator
a factor with levels op #1
op
#2
op #3
run
a factor with levels run #1
run #2
run #3
time1
a numeric vector
time2
a numeric vector
This data set is used in chapter 5 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.rr) summary(ss.data.rr)
data(ss.data.rr) summary(ss.data.rr)
This data set contains data from a simulated process of guitar strings production.
data(ss.data.strings)
data(ss.data.strings)
A data frame with 120 observations on the following 6 variables.
id
a numeric vector
type
a factor with levels A5
B2
D4
E1
E6
G3
res
a numeric vector for resistance
len
a numeric vector for length
sound
a numeric vector for
power
a numeric vector
This data set is used in chapter 10 of the book “Six Sigma with R” (see References).
See references.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andrés. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
data(ss.data.strings) summary(ss.data.strings)
data(ss.data.strings) summary(ss.data.strings)
This data set contains the thickness and additional data for 24 metal plates.
data("ss.data.thickness")
data("ss.data.thickness")
A data frame with 24 observations on the following 5 variables.
a numeric vector with the thickness (in)
a factor with the day (two days)
a factor with the shift (two shifts)
a factor with the day-shift combination
a factor with the position of the thickness with respect to the nominal value of 0.75 in
This data set illustrates concepts in the book “Quality Control with R”.
Note that, in the book, the data set is named plates
and it is
created sequentially throughout the examples.
Table 5.1 in the reference below.
Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.
data(ss.data.thickness) str(ss.data.thickness) lattice::bwplot(thickness ~ shift | day, data = ss.data.thickness)
data(ss.data.thickness) str(ss.data.thickness) lattice::bwplot(thickness ~ shift | day, data = ss.data.thickness)
This data set contains the thickness and additional data for 84 metal plates.
data("ss.data.thickness2")
data("ss.data.thickness2")
A data frame with 84 observations on the following 5 variables.
a factor with the day (seven days)
a factor with the shift (two shifts)
a numeric vector with the thickness (in)
a factor with the day-shift combination
an integer vector with the number of flaws on the surface of sampled plates
This data set illustrates concepts in the book “Quality Control with R”.
Examples 8.1 and 9.9 in the reference below.
Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.
data(ss.data.thickness2) str(ss.data.thickness2) lattice::dotplot(thickness ~ shift | day, data = ss.data.thickness2, layout = c(7, 1))
data(ss.data.thickness2) str(ss.data.thickness2) lattice::dotplot(thickness ~ shift | day, data = ss.data.thickness2, layout = c(7, 1))
This data set contains the 500 locations at which the density of a 0.5in-thick engineered woodboard is measured, i.e., 0.001 in apart
data("ss.data.wbx")
data("ss.data.wbx")
A vector with 500 items for the locations (in).
This data set illustrates concepts in the book “Quality Control with R”.
This data set should be used along with the ss.data.wby
data
set.
Example 10.1 in the reference below. It is a variation of the one introduced by Walker (2002).
Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.
Walker, E. amd Wright, W (2002) Comparing curves with additive models. J. Qual. Technol. 34(1), 118–129
data(ss.data.wbx) data(ss.data.wby) plotProfiles(profiles = ss.data.wby, x = ss.data.wbx)
data(ss.data.wbx) data(ss.data.wby) plotProfiles(profiles = ss.data.wby, x = ss.data.wbx)
This data set contains 50 profiles corresponding to the density measurements of 50 0.5in-thick engineered woodboard, measured in 500 locations.
data("ss.data.wby")
data("ss.data.wby")
A matrix with 500 rows (locations) and 50 columns (woodboard).
This data set illustrates concepts in the book “Quality Control with R”.
This data set should be used along with the ss.data.wbx
data
set.
Example 10.1 in the reference below. It is a variation of the one introduced by Walker (2002).
Cano, E.L. and Moguerza, J.M. and Prieto Corcoba, M. (2015) Quality Control with R. An ISO Standards Approach. Springer.
Walker, E. amd Wright, W (2002) Comparing curves with additive models. J. Qual. Technol. 34(1), 118–129
data(ss.data.wbx) data(ss.data.wby) plotProfiles(profiles = ss.data.wby, x = ss.data.wbx)
data(ss.data.wbx) data(ss.data.wby) plotProfiles(profiles = ss.data.wby, x = ss.data.wbx)
The pdf file contains a template with lines and indications to build the paper helicopter described in many SixSigma publications.
ss.heli()
ss.heli()
The pdf file must be printed in A4 paper, without adjusting size to paper.
No value is returned. A pdf file is saved in the working directory
See the vignette("HelicopterInstructions")
to see assembling instructions.
EL Cano
George Box. Teaching engineers experimental design with a paper helicopter. Quality Engineering, 4(3):453–459, 1992.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012. Six Sigma with R. Statistical Engineering for Process Improvement, Use R!, vol. 36. Springer, New York. https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
## Not run: ## ss.heli() vignette("HelicopterInstructions") ## End(Not run)
## Not run: ## ss.heli() vignette("HelicopterInstructions") ## End(Not run)
The quality loss function is one of the tools of the Six Sigma methodology. The function assigns a cost to an observed value, that is larger as far as it is from the target.
ss.lf(lfa.Y1, lfa.Delta, lfa.Y0, lfa.L0)
ss.lf(lfa.Y1, lfa.Delta, lfa.Y0, lfa.L0)
lfa.Y1 |
The observed value of the CTQ (critical to quality) characteristic that will be evaluated. |
lfa.Delta |
The tolerance for the CTQ. |
lfa.Y0 |
The target for the CTQ. |
lfa.L0 |
The cost of poor quality when the characteristic is |
ss.lf |
A number with the evaluated function at |
EL Cano
Taguchi G, Chowdhury S,Wu Y (2005) Taguchi's quality engineering handbook. John Wiley
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012. Six Sigma with R. Statistical Engineering for Process Improvement, Use R!, vol. 36. Springer, New York. https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
#Example bolts: evaluate LF at 10.5 if Target=10, Tolerance=0.5, L_0=0.001 ss.lf(10.5, 0.5, 10, 0.001)
#Example bolts: evaluate LF at 10.5 if Target=10, Tolerance=0.5, L_0=0.001 ss.lf(10.5, 0.5, 10, 0.001)
This function performs a Quality Loss Function Analysis, based in the Taguchi Loss Function for "Nominal-the-Best" characteristics.
ss.lfa( lfa.data, lfa.ctq, lfa.Delta, lfa.Y0, lfa.L0, lfa.size = NA, lfa.output = "both", lfa.sub = "Six Sigma Project" )
ss.lfa( lfa.data, lfa.ctq, lfa.Delta, lfa.Y0, lfa.L0, lfa.size = NA, lfa.output = "both", lfa.sub = "Six Sigma Project" )
lfa.data |
Data frame with the sample to get the average loss. |
lfa.ctq |
Name of the field in the data frame containing the data. |
lfa.Delta |
Tolerance of the process. |
lfa.Y0 |
Target of the process (see note). |
lfa.L0 |
Cost of poor quality at tolerance limit. |
lfa.size |
Size of the production, batch, etc. to calculate the total loss in a group (span, batch, period, ...) |
lfa.output |
Type of output (see details). |
lfa.sub |
Subtitle for the graphic output. |
lfa.output
can take the values "text", "plot" or "both".
lfa.k |
Constant k for the loss function |
lfa , lf
|
Expression with the loss function |
lfa.MSD |
Mean Squared Differences from the target |
lfa.avLoss |
Average Loss per unit of the process |
lfa.Loss |
Total Loss of the process (if a size is provided) |
For smaller-the-better characteristics, the target should be zero (lfa.Y0 = 0
).
For larger-the-better characteristics, the target should be infinity (lfa.Y0 = Inf
).
EL Cano
Taguchi G, Chowdhury S,Wu Y (2005) Taguchi's quality engineering handbook. John
Wiley
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
ss.lfa(ss.data.bolts, "diameter", 0.5, 10, 0.001, lfa.sub = "10 mm. Bolts Project", lfa.size = 100000, lfa.output = "both")
ss.lfa(ss.data.bolts, "diameter", 0.5, 10, 0.001, lfa.sub = "10 mm. Bolts Project", lfa.size = 100000, lfa.output = "both")
This function takes information about the process we want to represent and draw the Process Map, with its X's, x's, Y's and y's in each step of the process
ss.pMap( steps, inputs.overall, outputs.overall, input.output, x.parameters, y.features, main = "Six Sigma Process Map", sub, ss.col = c("#666666", "#BBBBBB", "#CCCCCC", "#DDDDDD", "#EEEEEE", "#FFFFFF", "#000000", "#000000") )
ss.pMap( steps, inputs.overall, outputs.overall, input.output, x.parameters, y.features, main = "Six Sigma Process Map", sub, ss.col = c("#666666", "#BBBBBB", "#CCCCCC", "#DDDDDD", "#EEEEEE", "#FFFFFF", "#000000", "#000000") )
steps |
A vector of characters with the name of the 'n' steps |
inputs.overall |
A vector of characters with the name of the overall inputs |
outputs.overall |
A vector of characters with the name of the overall outputs |
input.output |
A vector of lists with the names of the inputs of the |
x.parameters |
A vector of lists with a list of the x parameters of the process. The parameter is a vector with two values: the name and the type (view details) |
y.features |
A vector of lists with a list of the y features of the step. The feature is a vector with two values: the name and the type (view details) |
main |
The main title for the Process Map |
sub |
Subtitle for the diagram (recommended the Six Sigma project name) |
ss.col |
A vector of colours for a custom drawing. At least five colours, sorted by descendant intensity (see details) |
The type of the x parameters and y features can be: C(controllable), N(noise), Cr(Critical), P(Procedure). The default value for ss.col is c("#666666", "#BBBBBB", "#CCCCCC", "#DDDDDD", "#EEEEEE", "#FFFFFF", "#000000", "#000000") a grayscale style.You can pass any accepted color string.
A graphic representation of the Map Process.
The process map is the starting point for a Six Sigma Project, and it is very important to find out who the x's and y'x are.
EL Cano
https://en.wikipedia.org/wiki/Business_Process_Mapping/
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012.
Six Sigma with R. Statistical Engineering for Process
Improvement, Use R!, vol. 36. Springer, New York.
https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
inputs.overall<-c("operators", "tools", "raw material", "facilities") outputs.overall<-c("helicopter") steps<-c("INSPECTION", "ASSEMBLY", "TEST", "LABELING") #Inputs of process "i" are inputs of process "i+1" input.output<-vector(mode="list",length=length(steps)) input.output[1]<-list(c("sheets", "...")) input.output[2]<-list(c("sheets")) input.output[3]<-list(c("helicopter")) input.output[4]<-list(c("helicopter")) #Parameters of each process x.parameters<-vector(mode="list",length=length(steps)) x.parameters[1]<-list(c(list(c("width", "NC")),list(c("operator", "C")), list(c("Measure pattern", "P")), list(c("discard", "P")))) x.parameters[2]<-list(c(list(c("operator", "C")),list(c("cut", "P")), list(c("fix", "P")), list(c("rotor.width", "C")),list(c("rotor.length", "C")), list(c("paperclip", "C")), list(c("tape", "C")))) x.parameters[3]<-list(c(list(c("operator", "C")),list(c("throw", "P")), list(c("discard", "P")), list(c("environment", "N")))) x.parameters[4]<-list(c(list(c("operator", "C")),list(c("label", "P")))) x.parameters #Features of each process y.features<-vector(mode="list",length=length(steps)) y.features[1]<-list(c(list(c("ok", "Cr")))) y.features[2]<-list(c(list(c("weight", "Cr")))) y.features[3]<-list(c(list(c("time", "Cr")))) y.features[4]<-list(c(list(c("label", "Cr")))) y.features ss.pMap(steps, inputs.overall, outputs.overall, input.output, x.parameters, y.features, sub="Paper Helicopter Project")
inputs.overall<-c("operators", "tools", "raw material", "facilities") outputs.overall<-c("helicopter") steps<-c("INSPECTION", "ASSEMBLY", "TEST", "LABELING") #Inputs of process "i" are inputs of process "i+1" input.output<-vector(mode="list",length=length(steps)) input.output[1]<-list(c("sheets", "...")) input.output[2]<-list(c("sheets")) input.output[3]<-list(c("helicopter")) input.output[4]<-list(c("helicopter")) #Parameters of each process x.parameters<-vector(mode="list",length=length(steps)) x.parameters[1]<-list(c(list(c("width", "NC")),list(c("operator", "C")), list(c("Measure pattern", "P")), list(c("discard", "P")))) x.parameters[2]<-list(c(list(c("operator", "C")),list(c("cut", "P")), list(c("fix", "P")), list(c("rotor.width", "C")),list(c("rotor.length", "C")), list(c("paperclip", "C")), list(c("tape", "C")))) x.parameters[3]<-list(c(list(c("operator", "C")),list(c("throw", "P")), list(c("discard", "P")), list(c("environment", "N")))) x.parameters[4]<-list(c(list(c("operator", "C")),list(c("label", "P")))) x.parameters #Features of each process y.features<-vector(mode="list",length=length(steps)) y.features[1]<-list(c(list(c("ok", "Cr")))) y.features[2]<-list(c(list(c("weight", "Cr")))) y.features[3]<-list(c(list(c("time", "Cr")))) y.features[4]<-list(c(list(c("label", "Cr")))) y.features ss.pMap(steps, inputs.overall, outputs.overall, input.output, x.parameters, y.features, sub="Paper Helicopter Project")
Performs Gage R&R analysis for the assessment of the measurement system of a process. Related to the Measure phase of the DMAIC strategy of Six Sigma.
ss.rr( var, part, appr, lsl = NA, usl = NA, sigma = 6, tolerance = usl - lsl, data, main = "Six Sigma Gage R&R Study", sub = "", alphaLim = 0.05, errorTerm = "interaction", digits = 4, method = "crossed", print_plot = TRUE, signifstars = FALSE )
ss.rr( var, part, appr, lsl = NA, usl = NA, sigma = 6, tolerance = usl - lsl, data, main = "Six Sigma Gage R&R Study", sub = "", alphaLim = 0.05, errorTerm = "interaction", digits = 4, method = "crossed", print_plot = TRUE, signifstars = FALSE )
var |
Measured variable |
part |
Factor for parts |
appr |
Factor for appraisers (operators, machines, ...) |
lsl |
Numeric value of lower specification limit used with USL to calculate Study Variation as %Tolerance |
usl |
Numeric value of upper specification limit used with LSL to calculate Study Variation as %Tolerance |
sigma |
Numeric value for number of std deviations to use in calculating Study Variation |
tolerance |
Numeric value for the tolerance |
data |
Data frame containing the variables |
main |
Main title for the graphic output |
sub |
Subtitle for the graphic output (recommended the name of the project) |
alphaLim |
Limit to take into account interaction |
errorTerm |
Which term of the model should be used as error term (for the model with interation) |
digits |
Number of decimal digits for output |
method |
Character to specify the type of analysis to perform, |
print_plot |
if TRUE (default) the plots are printed. Change to FALSE to avoid printing plots. |
signifstars |
if FALSE (default) the significance stars are ommitted. Change to TRUE to allow printing stars. |
Performs an R&R study for the measured variable, taking into account part and appraiser factors. It outputs the sources of Variability, and six graphs: bar chart with the sources of Variability, plots by appraiser, part and interaction and x-bar and R control charts.
Analysis of Variance Table/s. Variance composition and %Study Var. Graphics.
anovaTable |
The ANOVA table of the model |
anovaRed |
The ANOVA table of the reduced model (without interaction, only if interaction not significant) |
varComp |
A matrix with the contribution of each component to the total variation |
studyVar |
A matrix with the contribution to the study variation |
ncat |
Number of distinct categories |
The F test for the main effects in the ANOVA table is usually made
taken the operator/appraisal
interaction as the error term (repeated measures model), thereby computing F as
$MS_factor/MS_interaction$, e.g. in appendix A of AIAG MSA manual,
in Montgomery (2009) and by statistical software such as Minitab.
However, in the example provided in page 127 of the AIAG MSA Manual, the
F test is performed as $MS_factor/MS_equipment$, i.e., repeatability.
Thus, since version 0.9-3 of the SixSigma package, a new argument
errorTerm
controls which term should be used as error Term, one of
"interaction", "repeatability".
Argument alphaLim
is used as upper limit to use the full model, i.e.,
with interaction. Above this value for the interaction effect, the
ANOVA table without the interaction effect is also obtained, and the variance
components are computed pooling the interaction term with the repeatibility.
Tolerance
can be calculaten from usl and lsl values or specified by hand.
The type of analysis to perform can be specified with the parameter method, "crossed"
or "nested"
.
Be sure to select the correct one and to have the data prepare for such type of analysis.
If you don't know wich one is for you check it before. It is really important to perform the correct one.
Otherwise results have no sense.
EL Cano with contributions by Kevin C Limburg
Automotive Industry Action Group. (2010). Measurement Systems Analysis (Fourth Edition). AIAG.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012. Six Sigma with R. Statistical Engineering for Process Improvement, Use R!, vol. 36. Springer, New York. https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
Montgomery, D. C. (2009). Introduction to Statistical Quality Control (Sixth Edition ed.). New York: Wiley & Sons, Inc.
ss.rr(time1, prototype, operator, data = ss.data.rr, sub = "Six Sigma Paper Helicopter Project", alphaLim = 0.05, errorTerm = "interaction", lsl = 0.7, usl = 1.8, method = "crossed")
ss.rr(time1, prototype, operator, data = ss.data.rr, sub = "Six Sigma Paper Helicopter Project", alphaLim = 0.05, errorTerm = "interaction", lsl = 0.7, usl = 1.8, method = "crossed")
Plots a Histogram with density lines about the data of a process. Check normality with qqplot and normality tests. Shows the Specification Limits and the Capability Indices.
ss.study.ca( xST, xLT = NA, LSL = NA, USL = NA, Target = NA, alpha = 0.05, f.na.rm = TRUE, f.main = "Six Sigma Capability Analysis Study", f.sub = "", f.colours = c("#4682B4", "#d1d1e0", "#000000", "#A2CD5A", "#D1EEEE", "#FFFFFF", "#000000", "#000000") )
ss.study.ca( xST, xLT = NA, LSL = NA, USL = NA, Target = NA, alpha = 0.05, f.na.rm = TRUE, f.main = "Six Sigma Capability Analysis Study", f.sub = "", f.colours = c("#4682B4", "#d1d1e0", "#000000", "#A2CD5A", "#D1EEEE", "#FFFFFF", "#000000", "#000000") )
xST |
Short Term process performance data |
xLT |
Long Term process performance data |
LSL |
Lower Specification Limit of the process |
USL |
Upper Specification Limit of the process |
Target |
Target of the process |
alpha |
Type I error for the Confidence Interval |
f.na.rm |
If TRUE NA data will be removed |
f.main |
Main Title for the graphic output |
f.sub |
Subtitle for the graphic output |
f.colours |
Vector of colours fot the graphic output |
Figures and plot for Capability Analysis
The argument f.colours
takes a vector of colours for the graphical outputs. The order of
the elements are, first the colour for histogram bars, then Density ST lines, Density LT
lines, Target, and Specification limits. It can be partially specified.
Main author: Emilio L. Cano. Contributions by Manu Alfaro.
Cano, Emilio L., Moguerza, Javier M. and Redchuk, Andres. 2012. Six Sigma with R. Statistical Engineering for Process Improvement, Use R!, vol. 36. Springer, New York. https://link.springer.com/book/10.1007/978-1-4614-3652-2/.
Montgomery, DC (2008) Introduction to Statistical Quality Control (Sixth Edition). New York: Wiley&Sons
ss.study.ca(ss.data.ca$Volume, rnorm(40, 753, 3), LSL = 740, USL = 760, T = 750, alpha = 0.05, f.sub = "Winery Project") ss.study.ca(ss.data.ca$Volume, rnorm(40, 753, 3), LSL = 740, USL = 760, T = 750, alpha = 0.05, f.sub = "Winery Project", f.colours = c("#990000", "#007700", "#002299"))
ss.study.ca(ss.data.ca$Volume, rnorm(40, 753, 3), LSL = 740, USL = 760, T = 750, alpha = 0.05, f.sub = "Winery Project") ss.study.ca(ss.data.ca$Volume, rnorm(40, 753, 3), LSL = 740, USL = 760, T = 750, alpha = 0.05, f.sub = "Winery Project", f.colours = c("#990000", "#007700", "#002299"))