Return the (hyper)parameters and states in a specified salmonIPM model
stan_pars.RdReturn the (hyper)parameters and states in a specified salmonIPM 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_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.- par_models
Optional list of two-sided formulas of the form
theta ~ x1 + ... + xK, wherethetais a (hyper)parameter or state in the model specified bystan_modelthat accepts covariates (see Details for available model-parameter combinations) andx1 + ... + xKare 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,RRSandpar_modelsare not needed and will be ignored; their values are extracted fromobject.