lambda.pert {mixtools} | R Documentation |
Perturbation of Mixing Proportions
Description
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.
Usage
lambda.pert(lambda, pert)
Arguments
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 |
Details
This function is called by regmixMH
.
Value
lambda.pert
returns new lambda
values perturbed by pert
.
See Also
Examples
set.seed(100)
x <- c(0.5, 0.2, 0.3)
lambda.pert(x, rcauchy(3))
[Package mixtools version 2.0.0 Index]