simulate-model-method: Simulates data from a model.

Description Usage Arguments Value See Also Examples

Description

simulate() simulates values for a specified mixture model in an S4 model object.

Usage

1
2
## S4 method for signature 'model'
simulate(model, N = 100, varargin, seed = 0)

Arguments

model

An S4 model object with specified parameters and weights.

N

An integer specifying the number of values to be simulated.

varargin

An S4 fdata object with specified variable dimensions, r and repetitions T.

seed

An integer specifying the seed for the RNG.

Value

An S4 fdata object holding the simulated values.

See Also

Examples

1
2
3
4
## Not run: 
f_data <- simulate(model, 100)

## End(Not run)

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