Definitions of parameters and states in a salmonIPM model
par_defs.Rd
Returns a data frame of parameters with their types, dimensions and definitions in the specified model.
Arguments
- stan_model
Character string giving the name of the model. See
salmonIPM()
for details.- pars
An optional character vector specifying one or more hierarchical levels of parameters. Options are
"all"
(the default),"hyper"
(top-level hyperparameters that are given priors),"group"
(pop
- oryear
-level parameters shared by multiple states),"states"
(the lowest level, corresponding to unique rows infish_data
), and"ppd"
(only ifmodel == "RR"
, observation-level predictions drawn from the posterior predictive distribution).- 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
.- par_models
Optional list of two-sided formulas of the form
theta ~ x1 + ... + xK
, wheretheta
is a (hyper)parameter or state in the model specified bystan_model
that accepts covariates (see Details for available model-parameter combinations) andx1 + ... + xK
are terms involving variables infish_data
. Standard formula syntax such as:
and*
may be used; seestats::formula()
.- object
A salmonIPMfit object. If this is provided then
SR_fun
,RRS
andpar_models
are not needed and will be ignored; their values are extracted fromobject
.