View source: R/frequentist_unconstrained.R
| frequentist_unconstrained | R Documentation |
Estimates the fractional contribution of each sediment source to a mixture by solving an overdetermined mass-balance system with least-squares minimisation. Source variability is propagated by Monte Carlo resampling: at each iteration, synthetic source signatures are drawn from a normal distribution defined by the measured mean and standard deviation, and the system is solved independently for each draw.
frequentist_unconstrained(
data,
variability = "SEM",
iter = 1000,
means = FALSE,
seed = 123456L,
verbose = TRUE
)
data |
Data frame in the standard OceanTracer format (sources + mixture). |
variability |
Character. |
iter |
Integer or character. Number of Monte Carlo iterations (e.g., |
means |
Logical. |
seed |
Integer. Random seed for reproducibility. Default is 123456L. |
verbose |
Logical. Whether to show progress bars and summary messages in the console. Default is TRUE. |
This function is the computational back-end called by unmixing.
For most users, calling unmixing directly is recommended.
A data frame with one row per iteration containing the mixture ID, goodness-of-fit (GOF), and one column per source with the estimated fractional contribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.