Learn R Programming

updog (version 1.1.3)

obj_for_weighted_lbb: Objective function for updating the beta-binomial genotype distribution when model = "bb" in flex_update_pivec.

Description

Objective function for updating the beta-binomial genotype distribution when model = "bb" in flex_update_pivec.

Usage

obj_for_weighted_lbb(parvec, ploidy, weight_vec)

Arguments

parvec

A vector of length 2. The first term is the current mean of the underlying beta. The second term is the current overdispersion parameter.

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 beta-binomial genotype distribution in mupdog.