mmain {multimix} | R Documentation |
Title
Description
Title
Usage
mmain(D, Z, P, eps = 1e-09)
Arguments
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. |
Value
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.
Author(s)
Murray Jorgensen
Examples
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
[Package multimix version 1.0-10 Index]