centsums-accessor-methods: Accessor methods.

accessorR Documentation

Accessor methods.

Description

Access slot data from a centsums object.

Usage

sums(x)

## S4 method for signature 'centsums'
sums(x)

moments(x, type = c("central", "raw", "standardized"))

## S4 method for signature 'centsums'
moments(x, type = c("central", "raw", "standardized"))

Arguments

x

a centsums object.

type

the type of moment to compute.

Value

for raw type, returns all the raw moments. for central and standardized, drops the mean, and returns the central or standardized 2nd through kth moments.

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.

Currently ‘raw’ moments returns mean and higher order moments, while ‘central’ and ‘standardized’ drop the mean, thus the size of the output depends on the type. This feels wrong to me and may be subject to change in upcoming versions.

Author(s)

Steven E. Pav shabbychef@gmail.com


fromo documentation built on Nov. 5, 2026, 9:06 a.m.