Get log likelihood of age observations
Usage
getLogLik(pars, surveys, Delta_l = 1, Delta_t = 0.05)
Arguments
- pars
A list containing the model parameters: k, L_inf, d, m.
- surveys
A data frame with survey age-at-length observations with
columns survey_date
, Length
, K
, and count
.
- Delta_l
Width of size bins (cm). Default is 1.
- Delta_t
Time step for the model simulation (years). Default is 0.05.
Value
A data frame with, for each observed Length-K bin in each survey, the
observed count, expected count under the model, model probability, sample
size, negative log-likelihood contribution, and signed negative
log-likelihood contribution.