Where a result came from
provenance.Rdstream_scheme names how simulations map to random-number streams;
samplers is a named list of sampler ids by family (for example
list(gamma = "marsaglia-tsang/2026-10")): the sampler table of the
build that made the draws, so every sampler they may have used. A family
not listed uses its first sampler (inverse transform for a distribution,
the documented method for a copula's frailty). A result replays only
with the same seed, stream scheme and samplers. samplers is NULL
when not recorded: a result without draws, one computed from draws made
elsewhere, or one made by a build from before samplers were recorded
(2026-10-08).
Examples
pd <- predictive_distribution(matrix(1:6, ncol = 2), data.frame(year = c(2023, 2024)))
provenance(pd)$model
#> [1] "r"