loglik.Mh2: Negative log-likelihood for model Mh2

Description Usage Arguments Value

View source: R/crfunctions.R

Description

Calculates the negative log-likelihood for a 2-part finite mixture model.

Usage

1
loglik.Mh2(pars, chmat)

Arguments

pars

Parameter vector comprising (qlogis(p1), qlogis(p2), qlogis(phi)), where p1 and p2 are the two latent capture probabilities, and phi is the proportion of the population with capture probability p1.

chmat

Binary capture history matrix, with one row per individual detected and one column per capture occasion.

Value

The negative log-likelihood.


david-borchers/mt5751a documentation built on Feb. 22, 2021, 4:01 a.m.