getFactorial-ddatamoments-method: Getter method of 'ddatamoments' class.

Description Usage Arguments Value See Also Examples

Description

Returns the factorial slot.

Usage

1
2
## S4 method for signature 'ddatamoments'
getFactorial(object)

Arguments

object

An ddatamoments object.

Value

The factorial slot of the object.

See Also

Examples

1
2
3
4
5
6
7
8
# Generate a Poisson mixture model with two components.
f_model <- model("poisson", par = list(lambda = c(0.3, 0.7)), K = 2)
# Simulate data from the model.
f_data <- simulate(f_model)
# Calculate the mixture moments.
f_datamoms <- datamoments(f_data)
# Get the moments for the included indicators of the data. 
getFactorial(f_datamoms)

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