Description Usage Arguments Value See Also Examples
View source: R/as.matrix.sstapreg.R
Provides samples of the posterior parameters in a matrix data structure
1 2 |
x |
sstaprego object |
... |
Ignored. |
pars |
vector of parameter names to subset from samples matrix |
A matrix of parameter samples. The dimensions/content of which depend on
pars
.
1 2 3 4 | if (!exists("example_model")) example(example_model)
# Extract posterior sample after MCMC
draws <- as.matrix(example_model)
print(dim(draws))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.