Skip to contents

Draw matrix of a predictive distribution

Usage

draw_matrix(dist, ...)

Arguments

...

Unused; for methods.

Value

Numeric matrix with one row per simulation and one column per component.

Examples

pd <- predictive_distribution(matrix(1:6, ncol = 2), data.frame(year = c(2023, 2024)))
draw_matrix(pd)
#>      [,1] [,2]
#> [1,]    1    4
#> [2,]    2    5
#> [3,]    3    6