baselogit: Calculates a set of baseline logits from a set of...

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

Description

Calculates a set of k-1 baseline logits \log(p_1/p_k), ..., \log(p_{k-1}/p_k), from a set of probabilities p_1,...,p_k.

Usage

1
baselogit(probs)

Arguments

probs

A set of probabilities, p_1,...,p_k, where k is the number of alleles.

Details

This function 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

baselogit

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

Author(s)

Jon Wakefield (jonno@u.washington).

References

Wakefield, J. (2010). Bayesian methods for examining Hardy-Weinberg equilibrium. Biometrics; Vol 66:257-65

See Also

invbaselogit

Examples

1
baselogit(probs=c(0.5,0.4,0.1))

HWEBayes documentation built on May 2, 2019, 11:07 a.m.

Related to baselogit in HWEBayes...