Perturbation of Mixing Proportions
Perturbs a set of mixing proportions by first scaling the mixing proportions, then taking the logit of the scaled values, perturbing them, and inverting back to produce a set of new mixing proportions.
lambda.pert(lambda, pert)
lambda |
A vector of length k giving the mixing proportions which are to be perturbed. |
pert |
A vector (possibly of length k-1) for which to perturb |
This function is called by regmixMH
.
lambda.pert
returns new lambda
values perturbed by pert
.
set.seed(100) x <- c(0.5, 0.2, 0.3) lambda.pert(x, rcauchy(3))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.