Provides samples of the posterior parameters in a matrix data structure

# S3 method for sstapreg
as.matrix(x, ..., pars = NULL)

Arguments

x

sstaprego object

...

Ignored.

pars

vector of parameter names to subset from samples matrix

Value

A matrix of parameter samples. The dimensions/content of which depend on pars.

See also

Examples

# \donttest{ if (!exists("example_model")) example(example_model)
#> Warning: no help found for ‘example_model’
# Extract posterior sample after MCMC draws <- as.matrix(example_model)
#> Error in as.matrix(example_model): object 'example_model' not found
print(dim(draws))
#> Error in print(dim(draws)): object 'draws' not found
# }