Skip to contents

Regime-like recruitment #' Generate future recruitment timeseries based on historcial regime-like recruitment dynamics. Historical recruitments identified as having belonged to a specific regime are randomly resampled, with replacement.

Usage

resample_regime_recruits(
  regime1_recruits,
  regime2_recruits,
  nyears,
  regime_length,
  starting_regime,
  seed
)

Arguments

regime1_recruits

historical recruitments from first regime

regime2_recruits

historical recruitments from second regime

nyears

total number of years to resample

regime_length

vector inidcating how long each regime last (limited to 2 regimes)

starting_regime

regime to start with (0 = first regime, 1 = second regime)

seed

random seed for reproducability