as.centcosums {fromo} | R Documentation |
Coerce to a centcosums object.
Description
Convert data to a centcosums
object.
Usage
as.centcosums(x, order=2, na.omit=TRUE)
## Default S3 method:
as.centcosums(x, order = 2, na.omit = TRUE)
Arguments
x |
a matrix. |
order |
the order, defaulting to |
na.omit |
whether to remove rows with |
Details
Computes the raw cosums on data, and stuffs the results into a
centcosums
object.
Value
A centcosums object.
Note
The moment computations provided by fromo are numerically robust, but will often not provide the same results as the 'standard' implementations, due to differences in roundoff. We make every attempt to balance speed and robustness. User assumes all risk from using the fromo package.
Author(s)
Steven E. Pav shabbychef@gmail.com
Examples
set.seed(123)
x <- matrix(rnorm(100*3),ncol=3)
cs <- as.centcosums(x, order=2)
[Package fromo version 0.2.1 Index]