Internal function called by fit_wham
. Calls fit_peel
to fit the model peeling off 1, 2, ..., n.peels
years of data.
retro(
model,
n.peels = 7,
ran = "log_NAA",
do.sdrep = FALSE,
n.newton = 0,
MakeADFun.silent = FALSE,
retro.silent = FALSE,
save.input = FALSE
)
Optimized TMB model, output from fit_tmb
.
Integer, number of peels to use in retrospective analysis. Default = 7
.
Character, specifies which parameters to treat as random effects. Default = "log_NAA"
.
T/F, calculate standard deviations of model parameters for each peel? Default = FALSE
.
integer, number of additional Newton steps after optimization for each peel. Default = 0
.
T/F, Passed to silent argument of TMB::MakeADFun
. Default = FALSE
.
T/F, Passed to argument of internal fit_peel function. Determines whether peel number is printed to screen. Default = FALSE
.
T/F, should modified input list be saved for every peel? Necessary to project from a peel but increases model object size. Default = FALSE
.
peels
, a list of length n.peels
, where entry i is a model
fit by peeling off i years of data.