GenEst (version 1.4.9)

cpLogLik: Calculate the negative log-likelihood of a carcass persistence model

Description

The function used to calculate the negative-loglikelihood of a given carcass persistence model (cpm) with a given data set

Usage

cpLogLik(t1, t2, beta, nbeta_l, cellByCarc, cellMM, dataMM, dist)

Value

Negative log likelihood of the observations, given the parameters.

Arguments

t1

last times observed present

t2

first times observed absent

beta

Parameters to be optimized.

nbeta_l

Number of parameters associated with l.

cellByCarc

Which cell each observation belongs to.

cellMM

Combined model matrix.

dataMM

Combined model matrix expanded to the data.

dist

Name of distribution.