An internal function that fits the LBSPR model to a single year of length data
LBSPRfit_(yr = 1, LB_pars = NULL, LB_lengths = NULL, Control = list(), pen = TRUE, useCPP = TRUE, verbose = TRUE)
| yr | index of the year column to fit model to |
|---|---|
| LB_pars | an object of class |
| LB_lengths | an object of class |
| Control | a list of control options for the LBSPR model. |
| pen | apply a penalty if estimate of selectivity is very high? |
| useCPP | use cpp optimization code? |
| verbose | display messages? |
a object of class 'LB_obj'
The Control options are:
modtypeModel Type: either Growth-Type-Group Model (default: "GTG") or Age-Structured ("absel")
maxsdMaximum number of standard deviations for length-at-age distribution (default is 2)
ngtgNumber of groups for the GTG model. Default is 13
PProportion of survival of initial cohort for maximum age for Age-Structured model. Default is 0.01
NageNumber of pseudo-age classes in the Age Structured model. Default is 101
maxFMMaximum value for F/M. Estimated values higher than this are trunctated to maxFM. Default is 4