View source: R/do_retro_peels.R
do_retro_peels | R Documentation |
Function to add fitted retrospective peels to fitted model returned by fit_wham
. Calls retro
.
to fit the model peeling off 1, 2, ..., n.peels
years of data.
This is just a wrapper for retro that instead of returning just the list of peels, returns the fitted model with the peels.
do_retro_peels(
model,
n.peels = 7,
ran = NULL,
use.mle = TRUE,
do.sdrep = FALSE,
n.newton = 0,
MakeADFun.silent = FALSE,
retro.silent = FALSE,
save.input = FALSE,
do.brps = FALSE,
check.version = TRUE
)
model |
Optimized TMB model, output from |
n.peels |
Integer, number of peels to use in retrospective analysis. Default = |
ran |
Character, specifies which parameters to treat as random effects. Default = |
use.mle |
T/F, use MLEs from full model fit as initial values for each peel? If not, the initial values from full model input are used. Default = |
do.sdrep |
T/F, calculate standard deviations of model parameters for each peel? Default = |
n.newton |
integer, number of additional Newton steps after optimization for each peel. Default = |
MakeADFun.silent |
T/F, Passed to silent argument of |
retro.silent |
T/F, Passed to argument of internal fit_peel function. Determines whether peel number is printed to screen. Default = |
save.input |
T/F, should modified input list be saved for every peel? Necessary to project from a peel but increases model object size. Default = |
do.brps |
T/F, calculate and report biological reference points |
check.version |
T/F, whether to verify the wham package commit and version for the fitted model are the same as the currently used package. |
peels
, a list of length n.peels
, where entry i is a model
fit by peeling off i years of data.
fit_wham
, retro
, fit_peel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.