make_Z_discrete {multimix}R Documentation

Make initial Z matrix from initial assignment of observations to clusters

Description

Z is an nn by numClustersnumClusters matrix of non-negative numbers whose rows sum to 1. The ijthij^{\mathrm{th}} element zijz_{ij} is a probability that observation ii belongs to cluster jj. Rather than begin from an initial assignment Multimix allows for a weighted assignment accross several clusters.

Usage

make_Z_discrete(d)

Arguments

d

integer

Details

This function yields a 0/1 valued matrix.

Value

a matrix whose entries are non-negative, and whose entries sum to 1.

Author(s)

Murray Jorgensen

Examples

stage = scan(file = system.file('extdata', 'Stage.txt', package = 'multimix'))
stage = stage - 2
Z = make_Z_discrete(stage)

[Package multimix version 1.0-10 Index]