Learn R Programming

MSEtool (version 1.1.0)

retrospective: Retrospective analysis of assessment models

Description

Perform a retrospective analysis, successive removals of most recent years of data to evaluate resulting parameter estimates.

Usage

retrospective(Assessment, nyr = 5, figure = TRUE, save_figure = TRUE,
  save_dir = tempdir())

Arguments

Assessment

An S4 object of class '>Assessment.

nyr

The maximum number of years to remove for the retrospective analysis.

figure

Indicates whether plots will be drawn.

save_figure

Indicates whether figures will be saved to directory.

save_dir

The directory to which figures will be saved. By default: getwd()

Value

A list with an array of model output and of model estimates from the retrospective analysis.

Figures showing the time series of biomass and exploitation and parameter estimates with successive number of years removed. Returns invisibly a list of model output and model estimates.

Examples

Run this code
# NOT RUN {
output <- DD_TMB(Data = DLMtool::Red_snapper)
get_retro <- retrospective(output, nyr = 5, figure = FALSE)
# }

Run the code above in your browser using DataLab