Last data update: 2014.03.03
This function allows to easily group data to use as input to the 'qcc' function.
qcc.groups(data, sample)
data
the observed data values
sample
the sample indicators for the data values
The function returns a matrix of suitable dimensions. If one or more group have few observations than others, NA values are appended.
NA
Luca Scrucca luca@stat.unipg.it
qcc
data(pistonrings) attach(pistonrings) # 40 sample of 5 obs each qcc.groups(diameter, sample) # some obs are removed, the result is still a 40x5 matrix but with NAs added qcc.groups(diameter[-c(1,2,50,52, 199)], sample[-c(1,2,50,52, 199)])