gibbs_known {hwep}R Documentation

Gibbs sampler under random mating with known genotypes.

Description

Gibbs sampler under random mating with known genotypes.

Usage

gibbs_known(x, alpha, B = 10000L, T = 1000L, more = FALSE, lg = FALSE)

Arguments

x

The vector of genotype counts. x(i) is the number of individuals that have genotype i.

alpha

Vector of hyperparameters for the gamete frequencies. Should be length (x.length() - 1) / 2 + 1.

B

The number of sampling iterations.

T

The number of burn-in iterations.

more

A logical. Should we also return posterior draws (TRUE) or not (FALSE).

lg

Should we return the log marginal likelihood (true) or not (false).

Value

A list with some or all of the following elements

Author(s)

David Gerard


[Package hwep version 2.0.2 Index]