View source: R/make_Z_random.r
make_Z_random | R Documentation |
A large number (n) of observations are assigned randomly into (xq) clusters. It is recommended to repeat Multimix runs with a number of different seeds to search for a log-likelihood maximum.
make_Z_random(D, seed = NULL)
D |
an object of class |
seed |
a positive integer to use as a random number seed. |
Also consider making additional clusters from observations with low probabilities of belonging to any cluster in a previous clustering.
a matrix of dimension n by q where
n is the number of observations in D$dframe
and q is the number of clusters in the model as specified
by D$numClusters
.
data(cancer.df) D = data_organise(cancer.df, numClusters = 2) Z = make_Z_random(D) table(Z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.