One component of a predictive distribution
marginal.RdOne component of a predictive distribution
Value
A sampled object, or NULL when no component has this key.
Examples
pd <- predictive_distribution(matrix(1:6, ncol = 2), data.frame(year = c(2023, 2024)))
marginal(pd, list(year = 2024))
#> <sampled> 3 draws, mean = 5