mmain | R Documentation |
Title
mmain(D, Z, P, eps = 1e-09)
D |
an object of class |
Z |
a matrix |
P |
a matrix |
eps |
Minimum increase in loglikelihood per EM step. If this is not exceeded the the algorithm will terminate. |
an object of class multimix results
which is a a list
containing four elements: the multmixSettings
object D
,
the Z matrix, the P matrix,
and a results matrix, called results
, with n rows and
numClusters columns.
Murray Jorgensen
data(cancer.df) D <- data_organise(cancer.df, numClusters = 2) stage <- scan(system.file('extdata', 'Stage.txt', package = 'multimix')) - 2 Z <- make_Z_discrete(stage) P <- initParamList(D,Z) zpr <- mmain(D,Z,P) zpr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.