
Estimate trophic position using a two source model with
two_source_model_arc(bp = FALSE, lambda = NULL)
returns model structure for two source model to be used in a
brms()
call.
logical value that controls whether informed priors are
supplied to the model for both FALSE
meaning the model will
use uninformed priors, however, the supplied data.frame
needs values
for both c1
, c2
, n1
, and n2
).
numerical value, 1
or 2
, that controls whether one or
two lambdas are used. See details for equations and when to use 1
or 2
.
Defaults to 1
.
We will use the following equations derived from Post 2002 and Heuvel et al. (2024) tools:::Rd_expr_doi("doi:10.1139/cjfas-2024-0028"):
For equation 1)
This equation is a carbon source mixing model with
For equation 2)
add_alpha()
and add_alpha()
.
For equation 3)
This equation is a carbon source mixing model with c_1
, c_2
and
For equation 4) and 5)
3.4
),
tp is trophic position, and 2
or 2.5
).
The data supplied to brms()
when using baselines at the same trophic level
(lambda
argument set to 1
) needs to have the following variables, d15n
,
n1
, n2
, l1
(2
. If using baselines at
different trophic levels (lambda
argument set to 2
) the data frame needs
to have l1
and l2
with a numerical value for each trophic level (e.g.,
2
and 2.5
;
brms::brms()