invbaselogit {HWEBayes}R Documentation

Converts a set of k-1 baseline logits into a set of probabilities

Description

Converts a set of k-1 baseline logits log (p_1/p_k),...,log (p_{k-1}/p_k) into a set of probabilities p_1,...,p_k, where k is the number of alleles.

Usage

invbaselogit(baselogit)

Arguments

baselogit A set of k-1 baseline logits, where k is the number of alleles.

Details

This is used by a number of other functions in the package, for example, to provide a parameterization for maximization and for importance sampling in the single f model.

Value

invbaselogit the probability vector corresponding to the baseline logit

Author(s)

Jon Wakefield (jonno@u.washington.edu)

References

Wakefield, J. (2009). Bayesian methods for examining Hardy-Weinberg equilibrium. Biometrics.

See Also

baselogit

Examples

invbaselogit(baselogit=c(0,0))

[Package HWEBayes version 1.0 Index]