Validate RRS specification
validate_RRS.RdCheck 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_popsand 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_funthat 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"). CurrentlyRRSis only implemented forpool_pops == FALSE.