Learn R Programming

mmds (version 1.1)

reparam.pi: Reparametrize mixture proportions

Description

Re-parameterise the mixture proportions so that when there is more than a 2-point mixture, the proportions sum to 1.

Usage

reparam.pi(thetas)

Arguments

thetas
Mixture proportions in their parametrisation for optimization.

Value

a vector of parameters

Notes

See Miller and Thomas for information on exactly how these are calculated. Thanks go to David Borchers for proposing the trick.

References

Miller, D.L. and L. Thomas (in prep.). Mixture model distance sampling detection functions.

See Also

inv.reparam.pi

Examples

Run this code
library(mmds)
reparam.pi(inv.reparam.pi(0.3))
reparam.pi(inv.reparam.pi(c(0.3,0.4,0.1),lastpar=TRUE))

Run the code above in your browser using DataLab