View source: R/NMixMCMCinitr.R
NMixMCMCinitr | R Documentation |
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.
NMixMCMCinitr(z, K, w, mu, Sigma, p, n, initr)
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. |
A vector with reasonable initial component allocations.
Arnošt Komárek arnost.komarek@mff.cuni.cz
NMixMCMC
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.