one_source_priors_params {trps} | R Documentation |
Adjust Bayesian priors - One Source Trophic Position
Description
Adjust priors for one source trophic position model derived from Post 2002.
Usage
one_source_priors_params(
n1 = NULL,
n1_sigma = NULL,
dn = NULL,
dn_sigma = NULL,
tp_lb = NULL,
tp_ub = NULL,
sigma_lb = NULL,
sigma_ub = NULL,
bp = FALSE
)
Arguments
n1 |
mean ( |
n1_sigma |
variance ( |
dn |
mean ( |
dn_sigma |
variance ( |
tp_lb |
lower bound prior for trophic position. Defaults to |
tp_ub |
upper bound prior for trophic position. Defaults to |
sigma_lb |
lower bound prior for |
sigma_ub |
upper bound prior for |
bp |
logical value that controls whether informed priors are
supplied to the model for |
Details
\delta^{15}N = \delta^{15} N_1 + \delta N \times (tp - \lambda_1)
This function allows the user to adjust the priors for the following variables in the equation above:
The mean (
n1
;\mu
) and variance (n1_sigma
;\sigma
) for the mean\delta^{15}
N for a given baseline (\delta^{15}N_1
). This prior assumes a normal distribution.The mean (
dn
;\mu
) and variance (dn_sigma
;\sigma
) of\Delta
N (i.e, trophic enrichment factor). This prior assumes a normal distribution.The lower (
tp_lb
) and upper (tp_ub
) bounds for trophic position. This prior assumes a uniform distribution.The lower (
sigma_lb
) and upper (sigma_ub
) bounds for variance (\sigma
). This prior assumes a uniform distribution.
Value
stanvars
object to be used with brms()
call.
See Also
one_source_priors()
, one_source_model()
, and brms::brms()
Examples
one_source_priors_params()