run_retro | R Documentation |
Function for running a retrospective analysis
run_retro(fit, folds, progress = TRUE)
fit |
Object from |
folds |
Number of years to 'fold' back |
progress |
Display progress bar? (Generated using the progressr and progress packages) |
This function runs a retrospective analysis whereby terminal survey index estimates are excluded from the analysis. A hindcast is also preformed in each fold where observed values are left out but predicted to measure the models forecasting skill.
Returns a list with three objects:
retro_fits
- a list including a series of fits from each retrospective fold
hindcasts
- a data.frame with observed, but left out, and predicted indices from each fold
mse
- mean squared error of the hindcasts (measure of forecasting skill)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.