rickerModel: Generate recruit abundance with Ricker model

Description Usage Arguments Value Examples

View source: R/stockRecruitModels.R

Description

This function calculates recruitment from Ricker curve with AR(1) process (according to Peterman et al. 2003; modified to take more recent parameter- ization). Uses parameters from arima.mle (a, -b, sig, rho in log space) with multivariate normally distributed errors. Note that internal if statements prevent it from being vectorized so must be passed single values, i.e. all vectors for inputs and outputs are length 1. Note that by default prevErr and rho are NULL, resulting in a standard Ricker model.

Usage

1
rickerModel(S, a, b, error, rho = NULL, prevErr = NULL)

Arguments

S

A numeric vector of spawner abundances.

a

A numeric vector of alpha values, i.e. productivity at low spawner abundance.

b

A numeric vector of beta values, i.e. density dependence para- meter.

error

A numeric vector of recruitment deviations, typically generated using rmvnorm() and relevant process variance estimates (sigma).

rho

A numeric vector of rho values, i.e. AR1 coefficient. outside of model using multivariate normal (or equivalent) distribution.

prevErr

A numeric vector representing recruitment deviations from previous brood year.

Value

Returns a list of R, a numeric representing recruit abundance, and errNext which is used to generate subsequent process error (i.e. next year's prevErr.

Examples

1
2
3
4
5
6
7
8
9
#Spawner and recruit values represent millions of fish, stock-recruit
#parameters approximate those of Fraser River sockeye salmon Chilko CU.

#without autoregressive error
rickerModel(S = 1.1, a = 1.8, b = 1.2, error = 0.3)

#with autoregressive error
rickerModel(S = 1.1, a = 1.8, b = 1.2, error = 0.3, rho = 0.2,
prevErr = 0.7)

TESA-workshops/TESAsamSim documentation built on Feb. 6, 2021, 12:25 a.m.