Learn R Programming

updog (version 1.2.0)

post_prob: Variational posterior probability of having dosage A alleles when the ploidy is ploidy, the allele frequency is alpha, the individual-specific overdispersion parameter is rho, the variational mean is mu, and the variational variance is sigma2.

Description

Variational posterior probability of having dosage A alleles when the ploidy is ploidy, the allele frequency is alpha, the individual-specific overdispersion parameter is rho, the variational mean is mu, and the variational variance is sigma2.

Usage

post_prob(dosage, ploidy, mu, sigma2, alpha, rho)

Arguments

dosage

The number of A alleles.

ploidy

The ploidy of the individual.

mu

The variational mean.

sigma2

The variational variance (not standard deviation).

alpha

The allele frequency.

rho

The individual's overdispersion parameter.

Value

The posterior probability of having dosage A alleles.