setPar-set-model-method: Setter method of 'model' class.

Description Usage Arguments Value See Also Examples

Description

Sets a value for the par slot.

Usage

1
2
## S4 replacement method for signature 'model'
setPar(object) <- value

Arguments

object

An model object.

value

A list specifying the component parameters.

Value

The model object with slot par set to value.

See Also

Examples

1
2
3
4
5
6
# Generate an default mixture model.
f_model <- model()
# Set the number of components to two.
setK(f_model) <- 2
# Set the slot.
setPar(f_model) <- list(lambda=c(0.2, 0.7))

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