Learn R Programming

updog (version 1.2.0)

pen_bias: Penalty on bias parameter.

Description

Penalty on bias parameter.

Usage

pen_bias(h, mu_h, sigma2_h)

Arguments

h

The current value of bias parameter. Must be greater than 0. A value of 1 means no bias.

mu_h

The prior mean of the log-bias parameter.

sigma2_h

The prior variance (not standard deviation) of the log-bias parameter. Set to to Inf to return 0.

Value

A double. The default penalty on the allelic bias parameter.