datamoments: Constructor for 'datamoments' classes

Description Usage Arguments Value See Also Examples

Description

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.

Usage

1
datamoments(value = fdata())

Arguments

value

An fdata object with at least slot y non-empty.

Value

A datamoments object containing the data moments for the observations in slot y and if available also for the indicators in slot S.

See Also

Examples

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)

simonsays1980/finmix documentation built on Dec. 23, 2021, 2:25 a.m.