Specify the growth model for Rceattle
Arguments
- fun
Growth function. Either a string (GROWTH_FUNS:
"empirical"(default),"vonBertalanffy","Richards") or the equivalent integer code (0,1,2). The canonical string form is stored on the returned object.- linkages
Optional named list of
linkage_spec()objects keyed by parameter name (must be one of GROWTH_LINKAGE_PARAMS). Each spec describes how that growth parameter depends on environmental covariates and on stratifying factors (species, sex). The parameter name on each spec is filled in from the list key. Materialization into the global linkage table happens insidefit_mod()oncedata_list$env_datais in scope.
Examples
if (FALSE) { # \dontrun{
# Sex-specific von Bertalanffy with temperature on K, by species + sex
build_growth(
fun = "vonBertalanffy", # or fun = 1
linkages = list(
log_K = linkage_spec(
formula = ~ temp,
by = ~ species + sex,
priors = list(temp = normal(0, 1))
)
)
)
} # }