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 matrix.
the order, defaulting to 2.
2
whether to remove rows with NA.
NA
A centcosums object.
Computes the raw cosums on data, and stuffs the results into a centcosums object.
# NOT RUN { 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