Description Usage Arguments Value See Also Examples
Calling datamoments()
generates the moments for an fdata
object.
Depending on the type of data either an cdatamoments
or ddatamoments
object is generated. If in addition the fdata
object contains fixed
indicators, the datamoments
object also holds an sdatamoments
object to
store the data moments of these indicators.
1 | datamoments(value = fdata())
|
value |
An |
A datamoments
object containing the data moments for the
observations in slot y
and if available also for the indicators in slot
S
.
datamoments for all slots of this class
cdatamoments for the class for continuous data
ddatamoments for the class for discrete data
1 2 3 4 | # Create an fdata class with Poisson data.
f_data <- fdata(rpois(100, 312), sim=TRUE)
# Compute the data moments.
datamoments(f_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.