Learn R Programming

HWEBayes (version 1.4)

Bayesian investigation of Hardy-Weinberg Equilibrium via estimation and testing.

Description

Estimation and testing of HWE using Bayesian methods. Three models are currently considered: HWE, a model parameterized in terms of the allele frequencies and a single inbreeding coefficient f, and the saturated model. Testing is based on Bayes factors.

Copy Link

Version

Install

install.packages('HWEBayes')

Monthly Downloads

67

Version

1.4

License

GPL-2

Maintainer

Last Published

December 18th, 2013

Functions in HWEBayes (1.4)

HWEImportSamp

Importance sampling to calculate the normalizing constant under the single f model
LambdaOptim

Obtains values for the prior specification for lambda
SinglefReject

Samples from the posterior for the single f model
DiabRecess

Data on diabetes patients antigen classes
HWETriangBF2

Evaluates the Bayes factor in the k=2 allele case with a "triangular" prior under the null
DirichSampHWE

Simulate samples from a Dirichlet prior or posterior under HWE
HWEmodelsMLE

Evaluates the maximum likelihood estimates of the parameters of various models in the k allele case
invbaselogit

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

Simulate data under the single f model with k alleles.
TriangNormHWE

Evaluates the normalizing constant under the HWE model, for the "triangular" prior distribution
SinglefPrior

Samples from the single f prior.
DirichSampSat

Simulate samples from a Dirichlet prior or posterior under the saturated model
DirichNormSat

Evaluates the normalizing constant (as used in the denominator of a Bayes factor) for a conjugate prior
baselogit

Calculates a set of baseline logits from a set of probabilities
HWEDirichBF2

Evaluates the Bayes factor in the k=2 allele case under conjugate priors
MultLogLikP

Evaluates the Multinomial likelihood under the single f model
MultLogLik

Evaluates the Multinomial likelihood under the single f model
DirichNormHWE

Evaluates the normalizing constant under the HWE model, with a conjugate prior