run_retro: Function for running a retrospective analysis

View source: R/fit.R

run_retroR Documentation

Function for running a retrospective analysis

Description

Function for running a retrospective analysis

Usage

run_retro(fit, folds, progress = TRUE)

Arguments

fit

Object from fit_model()

folds

Number of years to 'fold' back

progress

Display progress bar? (Generated using the progressr and progress packages)

Details

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.

Value

Returns a list with three objects:

  1. retro_fits - a list including a series of fits from each retrospective fold

  2. hindcasts - a data.frame with observed, but left out, and predicted indices from each fold

  3. mse - mean squared error of the hindcasts (measure of forecasting skill)


PaulRegular/MSP documentation built on Dec. 16, 2024, 1:59 p.m.