Strategy-class: Constructor of ['Strategy'] class

Strategy-classR Documentation

Constructor of [Strategy] class

Description

This class defines the Mixmod strategies.

Details

algo:

list of character string with the estimation algorithm. Possible values: "EM", "SEM", "CEM", c("EM","SEM"). Default value is "EM".

nbTry:

integer defining the number of tries. Default value: 1.

initMethod:

a character string with the method of initialization of the algorithm specified in the algo argument. Possible values: "random", "smallEM", "CEM", "SEMMax", "parameter", "label". Default value: "smallEM".

nbTryInInit:

integer defining number of tries in initMethod algorithm. Default value: 50.

nbIterationInInit:

integer defining the number of "EM" or "SEM" iterations in initMethod. Default values: 5 if initMethod is "smallEM" and 100 if initMethod is "SEMMax".

nbIterationInAlgo:

list of integers defining the number of iterations if user want to use nbIteration as rule to stop the algorithm(s). Default value: 200.

epsilonInInit:

real defining the epsilon value in the initialization step. Only available if initMethod is "smallEM". Default value: 0.001.

epsilonInAlgo:

list of reals defining the epsilon value for the algorithm. Warning: epsilonInAlgo doesn't have any sense if algo is SEM, so it needs to be set as NaN in that case. Default value: 0.001.

seed:

integer defining the seed of the random number generator. Setting a particular seed allows the user to (re)-generate a particular sequence of random numbers. Default value is NULL, i.e. a random seed.

parameter:

instance of "Parameter" subclass. Required if initMethod is "parameter", forbidden otherwise.

labels:

vector of integers containing labels. Required if initMethod is "label", forbidden otherwise.

Examples

new("Strategy")
new("Strategy", algo = "SEM", initMethod = "SEMMax")

getSlots("Strategy")

Rmixmod documentation built on May 29, 2024, 7:32 a.m.