This function is used to compute statistics required by the u chart.

1 2 3 4 5 6 7 8 9 10 11 | ```
qcs.u(x, ...)
## Default S3 method:
qcs.u(x, var.index = 1, sample.index = 2,
covar.index = NULL, covar.names = NULL, data.name = NULL,
sizes = NULL, center = NULL, conf.nsigma = 3, limits = NULL,
plot = FALSE, ...)
## S3 method for class 'qcd'
qcs.u(x, center = NULL, conf.nsigma = 3, limits = NULL,
plot = FALSE, ...)
``` |

`x` |
an R object (used to select the method). See details. |

`...` |
arguments passed to or from methods. |

`var.index` |
a scalar with the column number corresponding to the observed data for the variable (the variable quality). Alternativelly can be a string with the name of the quality variable. |

`sample.index` |
a scalar with the column number corresponding to the index each group (sample). |

`covar.index` |
optional. A scalar or numeric vector with the column number(s) corresponding to the covariate(s). Alternativelly it can be a character vector with the names of the covariates. |

`covar.names` |
optional. A string or vector of strings with names for the covariate columns. Only valid if there is more than one column of data. By default, takes the names from the original object. |

`data.name` |
a string specifying the name of the variable which appears on the plots. If not provided it is taken from the object given as data. |

`sizes` |
optional. A value or a vector of values specifying the sample sizes
associated with each group. For continuous data the sample sizes are obtained counting the non- |

`center` |
a value specifying the center of group statistics or the ”target” value of the process. |

`conf.nsigma` |
a numeric value used to compute control limits, specifying the
number of standard deviations (if |

`limits` |
a two-values vector specifying control limits. |

`plot` |
a logical value indicating should be plotted. |

1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ```
data(pcmanufact)
attach(pcmanufact)
str(pcmanufact)
datos <- pcmanufact
datos$sample <- 1:length(datos$x)
str(datos)
sizes <- datos[,2]
datos.qcd <- qcd(data = datos, var.index = 1,sample.index = 2,
sizes = sizes, type.data = "atributte")
res.qcs <- qcs.u(datos.qcd)
summary(res.qcs)
plot(res.qcs)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.