| unmixing | R Documentation |
Estimates the fractional contribution of each potential source to one or more mixtures. Users can seamlessly switch between a lightning-fast Frequentist least-squares approach (with optional Linear Variability Propagation) or a standard Bayesian MCMC approach.
unmixing(
data,
model = "frequentist",
iter = 1000L,
variability = "SEM",
lvp = TRUE,
seed = 123456L,
...
)
data |
Data frame in the standard OceanTracer format. |
model |
Character. |
iter |
Integer. Number of iterations for frequentist Monte Carlo/LVP.
Default |
variability |
Character. Uncertainty metric: |
lvp |
Logical. |
seed |
Integer. Random seed for reproducibility. Default |
... |
Additional arguments passed to the Bayesian engine (e.g., |
Both raw (individual observations) and averaged (Mean_/SD_
columns) input formats are accepted. When multiple mixture samples are
present, the model processes each independently.
For the "frequentist" model, a data frame with one row per iteration
and mixture. For the "bayesian" model, a named list containing the
formatted apportionment data frame, the MixSIAR summary statistics, and the
raw JAGS model object.
Latorre, B., Lizaga, I., Gaspar, L., & Navas, A. (2025). Evaluating the impact of high source variability and extreme contributing sources on sediment fingerprinting models. Water Resources Management. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/s11269-025-04169-8")}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.