Description Usage Arguments Value Author(s) See Also Examples
View source: R/SubgroupSummary.R
Function gives subgroup size, mean, standard deviation, adjusted standard deviation, skewness, kurtosis and a table of control chart constants for subgroups in the given series.
1 | SubgroupSummary(Subgroups, MaxSgpSize)
|
Subgroups |
a series of subgroups |
MaxSgpSize |
possible maximum size of a subgroup |
SgpSummary
Nadeeka Premarathna
1 2 3 4 5 6 7 8 9 | # Subgroup size
SubgroupCriteria="weeks"
# load data
data(AAPL)
# divide into subgroups
StockPrice=window(AAPL[,"Close"],start=as.Date("2012-01-02"),end=as.Date("2014-12-31"))
Subgroups=Subgrouping(StockPrice,SubgroupCriteria,CountSgps=1)
# obtain the subgroup summary
SubgroupSummary(Subgroups,MaxSgpSize=5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.