NMixMCMCinitr {mixAK} | R Documentation |
Initial component allocations for the NMixMCMC function
Description
This is a help function for NMixMCMC
function. If
initr
is not given, it calculates reasonable initial values for
component allocations. If initr
argument is given then it is
checked for consistency and formatted on output.
THIS FUNCTION IS NOT TO BE CALLED BY ORDINARY USERS.
Usage
NMixMCMCinitr(z, K, w, mu, Sigma, p, n, initr)
Arguments
z |
a vector (if |
K |
a number of mixture components |
w |
a vector with (initial) mixture weights |
mu |
a vector of (initial) mixture means (if |
Sigma |
a vector of (initial) mixture variances (if |
p |
dimension of the data |
n |
number of observations |
initr |
a vector of initial component allocations to be checked for consistency. If not given then reasonable initials are generated. |
Value
A vector with reasonable initial component allocations.
Author(s)
Arnošt Komárek arnost.komarek@mff.cuni.cz