as.matrix.sstapreg: Extract the posterior sample

Description Usage Arguments Value See Also Examples

View source: R/as.matrix.sstapreg.R

Description

Provides samples of the posterior parameters in a matrix data structure

Usage

1
2
## S3 method for class '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

sstapreg-methods

Examples

1
2
3
4
if (!exists("example_model")) example(example_model)
# Extract posterior sample after MCMC
draws <- as.matrix(example_model)
print(dim(draws))

apeterson91/rsstap documentation built on April 7, 2021, 4:36 p.m.