Skip to contents

Extend data and parameters for Management Procedure Evaluation (MPE) simulations.

Usage

prepare_mpe(
  data,
  parameters,
  map,
  mcmc,
  n_proj,
  n_iter = 1000,
  seed = 42,
  Rdev_yr,
  cpue_sd
)

Arguments

data

A list containing model data structure.

parameters

A list containing model parameters.

map

A list specifying which parameters are fixed or mapped.

mcmc

An MCMC posterior sample object, or NULL if not using MCMC.

n_proj

An integer specifying the number of projection years to add.

n_iter

An integer specifying the number of samples from posterior distribution.

seed

An integer random seed for reproducibility.

Rdev_yr

A matrix of projected recruitment deviations.

cpue_sd

A numeric value or vector for projected CPUE standard deviation.

Value

a list with data and parameters extended for projection years.