reduce_input: Reduce the years of the model

View source: R/reduce_input.R

reduce_inputR Documentation

Reduce the years of the model

Description

Internal function called by fit_peel for i in 1–n.peels. Creates the input for the model peeling off i years of data (calls fit_tmb). Reduces the year dimension of all data, parameters, maps, so that one can project correctly from the peeled model.

Usage

reduce_input(input, years_peeled, retro = TRUE)

Arguments

input

list containing data, parameters, map, and random elements (output from prepare_wham_input). NOT from prepare_projection or project_wham

years_peeled

which of input$years to peel from the model input

retro

(T/F) whether this is for a retro peel (Default = TRUE)


timjmiller/wham documentation built on Feb. 4, 2025, 10:31 p.m.