Validate RRS specification
validate_RRS.Rd
Check whether an RRS specification is consistent with a stan_model.
Arguments
- stan_model
Character string specifying the salmonIPM model to be fit. A more concise alternative to specifying
model
,life_cycle
, andpool_pops
and will override those arguments.- SR_fun
One of
"exp"
(density-independent discrete exponential),"BH"
(Beverton-Holt, the default), or"Ricker"
, indicating which spawner-recruit function to fit. Synonyms"DI"
,"B-H"
,"bh"
,"b-h"
and"ricker"
are accepted.- RRS
A character string or vector of strings naming parameters of the function specified by
SR_fun
that differ between wild- and hatchery-origin spawners, such that the relative reproductive success of hatchery spawners is not equal to 1. Ifpool_pops == TRUE
, these should be the names of the population-specific parameters, not their hyper-means. For example, iflife_cycle %in% c("SS","SSiter")
, the options are"none"
(the default),"alpha"
,"Rmax"
, orc("alpha","Rmax")
. CurrentlyRRS
is only implemented forpool_pops == FALSE
.