Learn R Programming

updog (version 1.1.3)

get_probk_vec: Obtain the genotype distribution given the distribution of discrete uniforms.

Description

Obtain the genotype distribution given the distribution of discrete uniforms.

Usage

get_probk_vec(pivec, model, mode)

Arguments

pivec

The mixing probability of the i'th discrete uniform distribution.

model

What form should the prior (genotype distribution) take? See Details for possible values.

mode

The mode if model = "ash". If not provided, flexdog will estimate the mode. This is the starting point of the allele frequency if model = "hw". This should be NULL for all other options of model.

Value

A vector of numerics. Element k is the probability of genotype k.

See Also

flexdog where this is used.