Skip to contents

Rows are draws and columns are parameters, describing a single point.

Usage

# S3 method for class 'matrix'
as_epidist_multivariate(draws, params = NULL, ...)

Arguments

draws

Draws of the parameters. See the methods for supported formats.

params

A character vector naming the columns of draws. Defaults to the column names of draws.

...

Not used in this method.

Examples

set.seed(1)
draws <- cbind(mean = rnorm(500, 7.5, 0.3), sd = rnorm(500, 3.6, 0.2))
as_epidist_multivariate(draws)
#> A multivariate representation of 2 parameters at 1 index point.
#>     mean       sd 
#> 7.506793 3.590812 
#>              [,1]         [,2]
#> [1,]  0.092159903 -0.002646723
#> [2,] -0.002646723  0.044715697