as.centcosums: Coerce to a centcosums object.

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/zzz_centsums.R

Description

Convert data to a centcosums object.

Usage

1
2
3
4
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 2.

na.omit

whether to remove rows with NA.

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

1
2
3
set.seed(123)
x <- matrix(rnorm(100*3),ncol=3)
cs <- as.centcosums(x, order=2)

shabbychef/fromo documentation built on April 11, 2021, 11:03 p.m.