MultLogLikP: Evaluates the Multinomial likelihood under the single f model

Description Usage Arguments Value Note Author(s) References See Also

Description

Evaluates the Multinomial likelihood under the single f model. The normalizing constant is not included. This function is called by a number of other functions, and should not be needed.

Usage

1
MultLogLikP(p, f, nvec)

Arguments

p

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

f

The f parameter

nvec

vector of genotype frequencies in the order n_{11}, n_{21}, ..., n_{k1}, n_{22}, ..., n_{k2}, ..., n_{kk}.

Value

The unnormalized multinomial log-likelihood.

Note

MultLogLik also calculates the multinomial likelihood using an alternate parameterization.

Author(s)

Jon Wakefield (jonno@u.washington.edu)

References

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

Weir, B.S. (1996). Genetic Data Analysis II. Sunderland MA: Sinauer.

See Also

SinglefReject,MultLogLik


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