Unlimited learning, half price | 50% off
Get 50% off unlimited learning

trps (version 0.1.0)

two_source_model_arc: Bayesian model - Two Source Trophic Position with αr and carbon mixing model

Description

Estimate trophic position using a two source model with αr derived from Post 2002 and Heuvel et al. (2024) tools:::Rd_expr_doi("doi:10.1139/cjfas-2024-0028") using a Bayesian framework.

Usage

two_source_model_arc(bp = FALSE, lambda = NULL)

Value

returns model structure for two source model to be used in a brms() call.

Arguments

bp

logical value that controls whether informed priors are supplied to the model for both δ15N and δ15C baselines. Default is FALSE meaning the model will use uninformed priors, however, the supplied data.frame needs values for both δ15N and δ15C baseline (c1, c2, n1, and n2).

lambda

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.

Details

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"):

  1. α=(δ13Ccδ13C2)/(δ13C1δ13C2)

  2. α=αr×(αmaxαmin)+αmin

  3. δ13C=c1×αc+c2×(1αc)

  4. δ15N=ΔN×(tpλ1)+n1×αc+n2×(1αc)

  5. δ15N=ΔN×(tp(λ1×αc+λ2×(1αc)))+n1×αc+n2×(1αc)

For equation 1)

This equation is a carbon source mixing model with δ13Cc is the isotopic value for consumer, δ13C1 is the mean isotopic value for baseline 1 and δ13C2 is the mean isotopic value for baseline 2.

For equation 2)

α is being corrected using equations in Heuvel et al. (2024) tools:::Rd_expr_doi("doi:10.1139/cjfas-2024-0028"). with αr being the corrected value (bound by 0 and 1), αmin is the minimum α value calculated using add_alpha() and αmax being the maximum α value calculated using add_alpha().

For equation 3)

This equation is a carbon source mixing model with δ13C being estimated using c_1, c_2 and αc calculated in equation 1.

For equation 4) and 5)

δ15N are values from the consumer, n1 is δ15N values of baseline 1, n2 is δ15N values of baseline 2, ΔN is the trophic discrimination factor for N (i.e., mean of 3.4), tp is trophic position, and λ1 and/or λ2 are the trophic levels of baselines which are often a primary consumer (e.g., 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 (λ1) which is usually 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; λ1 and λ2).

See Also

brms::brms()

Examples

Run this code
two_source_model_arc()

Run the code above in your browser using DataLab