Learn R Programming

ClustMMDD (version 1.0.4)

setEmOptions: Set Expectation and Maximization options.

Description

Set Expectation and Maximization options.

Usage

setEmOptions(emOptions = list(epsi = NULL, typeSmallEM = NULL, typeEM = NULL, nberSmallEM = NULL, nberIterations = NULL, nberMaxIterations = NULL, putThreshold = NULL))

Arguments

emOptions
A list of options needed by the Expectation and maximization algorithm :
  • epsi : In [1e-5, 1e-20], it is the upper bound of the relative increase in the log-likelihood.
  • typeSmallEM : In c(0, 1, 2) : 0 = classic EM, 1 = SEM, 2 = CEM.
  • typeEM : In c(0, 1, 2) : 0 = classic EM, 1 = SEM, 2 = CEM.
  • nberSmallEM : The number of random parameter points from which to perform nberIterations EM runs.
  • nberIterations : The number of iterations for each small EM.
  • nberMaxIterations : The maximum number of iterations if EM algorithm converge hardly.
  • putThreshold : If TRUE, the probabilities of levels are assumed to be positive in all clusters.

Details

Use setEmOptions() to set all options to default.

References

See Also

EmOptions for getting the current EM options.

Examples

Run this code
EmOptions()
setEmOptions(list(epsi = 1e-6))
EmOptions()
setEmOptions()	# To set default values
EmOptions()

Run the code above in your browser using DataLab