make_Z_random {multimix} | R Documentation |
Start from random groups of similar size.
Description
A large number () of observations are assigned randomly into
(
) clusters. It is recommended to repeat Multimix runs with a
number of different seeds to search for a log-likelihood maximum.
Usage
make_Z_random(D, seed = NULL)
Arguments
D |
an object of class |
seed |
a positive integer to use as a random number seed. |
Details
Also consider making additional clusters from observations with low probabilities of belonging to any cluster in a previous clustering.
Value
a matrix of dimension where
is the number of observations in
D$dframe
and is the number of clusters in the model as specified
by
D$numClusters
.
Examples
data(cancer.df)
D = data_organise(cancer.df, numClusters = 2)
Z = make_Z_random(D)
table(Z)
[Package multimix version 1.0-10 Index]