The function used to calculate the negative-loglikelihood of
a given searcher efficiency model (pkm
) with a given data
set
pkLogLik(
misses,
foundOn,
beta,
nbeta_p,
cellByCarc,
maxmisses,
cellMM,
kFixed = NULL
)
Negative log likelihood of the observations, given the parameters.
Number of searches when carcass was present but not found.
Search on which carcass was found.
Parameters to be optimized.
Number of parameters associated with p.
Which cell each observation belongs to.
Maximum possible number of misses for a carcass.
Combined pk model matrix.
Value of k if fixed.