powered by
Convert data to a centcosums object.
centcosums
as.centcosums(x, order=2, na.omit=TRUE)# S3 method for default as.centcosums(x, order = 2, na.omit = TRUE)
# S3 method for default as.centcosums(x, order = 2, na.omit = TRUE)
A centcosums object.
a matrix.
the order, defaulting to 2.
2
whether to remove rows with NA.
NA
Steven E. Pav shabbychef@gmail.com
Computes the raw cosums on data, and stuffs the results into a centcosums object.
set.seed(123) x <- matrix(rnorm(100*3),ncol=3) cs <- as.centcosums(x, order=2)
Run the code above in your browser using DataLab