Fit growth parameters by minimizing the negative log likelihood with TMB
Source:R/fit_tmb_nll.R
fit_tmb_nll.Rd
Optimizes k, L_inf, d, m, and annuli_min_age using nlminb(). Spawning parameters and annuli_date are treated as data.
Arguments
- surveys
Data frame with columns survey_date (numeric), Length, K, count.
- Delta_l
Numeric size step (cm), default 1.
- Delta_t
Numeric time step (years), default 0.05.
- spawning_mu
Spawning mean date in [0,1).
- spawning_kappa
Spawning concentration parameter.
- annuli_date
Annual ring formation date in [0,1).
- start
Named numeric vector for parameters c(k, L_inf, d, m, annuli_min_age).
- lower
Named numeric vector of lower bounds (same names).
- upper
Named numeric vector of upper bounds (same names).
- compile
Logical, compile the TMB template if needed.