inv.reparam.pi: Reparametrize mixture proportions

Description Usage Arguments Value Notes Author(s) References See Also Examples

View source: R/inv.reparam.pi.R

Description

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

Usage

1
  inv.reparam.pi(mix.prop, lastpar = FALSE)

Arguments

mix.prop

A set of mixture proportions.

lastpar

Is the last parameter provided, i.e. does sum(mix.prop)=1?

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.

Author(s)

David L. Miller

References

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

See Also

reparam.pi

Examples

1
2
3
library(mmds)
reparam.pi(inv.reparam.pi(0.3))
reparam.pi(inv.reparam.pi(c(0.3,0.4,0.1),lastpar=TRUE))

mmds documentation built on May 29, 2017, 11:08 p.m.

Search within the mmds package
Search all R packages, documentation and source code