The function used to calculate the negative-loglikelihood of
a given carcass persistence model (cpm
) with a given data
set
cpLogLik(t1, t2, beta, nbeta_l, cellByCarc, cellMM, dataMM, dist)
last times observed present
first times observed absent
Parameters to be optimized.
Number of parameters associated with l.
Which cell each observation belongs to.
Combined model matrix.
Combined model matrix expanded to the data.
Name of distribution.
Negative log likelihood of the observations, given the parameters.