lambda.pert | R Documentation |
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
.
regmixMH
set.seed(100) x <- c(0.5, 0.2, 0.3) lambda.pert(x, rcauchy(3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.