View source: R/triangles_virtual.R
| triangles_virtual | R Documentation |
For each tracer of interest, solves a series of minimal determined linear
systems to assess how consistently that tracer constrains the source
apportionment. In each iteration the tracer under evaluation is kept fixed
while the remaining tracers needed to complete the system are replaced by
uniformly random values in [0, 1] (virtual approach).
triangles_virtual(
sources,
mixtures,
tracer = 0L,
iter = 100L,
seed = 69512L,
pb = NULL,
pb_offset = 0L,
tracer_current = NULL,
tracer_total = NULL,
verbose = TRUE
)
sources |
Data frame of source statistics: ID, one mean column per
tracer, one SD column per tracer, and sample size |
mixtures |
Data frame of mixture samples with the same tracer columns. |
tracer |
Integer (0-based). Index of the tracer under evaluation. |
iter |
Integer. Number of Monte Carlo iterations per mixture sample. Default |
seed |
Integer. Random seed for reproducibility. Default |
pb |
External |
pb_offset |
Integer. Starting offset for external progress bar. Default |
tracer_current |
Integer. Position of this tracer in outer loop. Default |
tracer_total |
Integer. Total number of tracers in outer loop. Default |
verbose |
Logical. Whether to print tracer progress messages to the console. Default is |
A data frame with nrow(mixtures) * iter rows containing mixture ID,
GOF (fixed at 1), and apportioned weights per source.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.