modelmoments: Constructor of finmix 'modelmoments' class

Description Usage Arguments Value See Also Examples

Description

Calling modelmoments() calculates the corresponding moments of the finite mixture distribution defined in the model object. The model object should contain parameters in slot par and weights in slot weight.

Usage

1

Arguments

model

A model object containing defined parameters in slot par and defined weights in slot weight.

Value

A modelmoments object with calculated moments of the finite mixture model defined in the model object.

See Also

Examples

1
2
3
f_model <- model("poisson", par=list(lambda=c(0.3, 0.1)), 
                 weight=matrix(c(0.3, 0.7), nrow=1))
modelmoments(f_model)

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