dist1.par1 Lower distribution: mean for normal, shape for gamma
dist1.par2 Lower distribution: SD for normal, scale for gamma
dist2.par1 Upper distribution: mean for normal, shape for gamma
dist2.par2 Upper distribution: SD for normal, scale for gamma
.input
Vector of (numeric) trait observations.
.distlist
List of 2 distribution density functions. The first is the lower or leftmost distribution; the second is the upper or rightmost.
do.sum
By default, return sum of likelihoods. Set to FALSE for testing.
Details
Computes maximum likelihood function for either the normal mixture distribution or the facing gamma distribution model for a dimorphic trait.
Value
Numeric: the negative 2 x log likelihood of trait measurement.
References
Rowland JM, Qualls CR. 2005. Likelihood models for discriminating alternative phenotypes in morphologically dimorphic species. Evolutionary Ecology Research 7: 421-434.