Learn R Programming

updog (version 1.1.3)

obj_for_weighted_lnorm: Objective function for updating discrete normal genotype distribution when model = "normal" in flex_update_pivec.

Description

Objective function for updating discrete normal genotype distribution when model = "normal" in flex_update_pivec.

Usage

obj_for_weighted_lnorm(parvec, ploidy, weight_vec)

Arguments

parvec

A vector of length 2. The first term is the current mean of the underlying normal. The second term is the current standard deviation (not variance) of the normal.

ploidy

The ploidy of the species.

weight_vec

A vector of length ploidy + 1 that contains the weights for each component beta-binomial.

Value

A double. The objective when updating the normal genotype distribution in mupdog.