| accessor | R Documentation |
Access slot data from a centsums object.
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"))
x |
a |
type |
the type of moment to compute. |
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.
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.
Steven E. Pav shabbychef@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.