View source: R/make_Z_discrete.r
make_Z_discrete | R Documentation |
Z is an n by numClusters matrix of non-negative numbers whose rows sum to 1. The ij^th element z_ij is a probability that observation i belongs to cluster j. Rather than begin from an initial assignment Multimix allows for a weighted assignment accross several clusters.
make_Z_discrete(d)
d |
integer |
This function yields a 0/1 valued matrix.
a matrix
whose entries are non-negative, and whose entries sum to 1.
Murray Jorgensen
stage = scan(file = system.file('extdata', 'Stage.txt', package = 'multimix')) stage = stage - 2 Z = make_Z_discrete(stage)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.