Description Usage Arguments Details Value Author(s) See Also
Extracts or draws posterior samples for fit models.
1 | extract.samples( object , n=10000 , clean.names=TRUE , ... )
|
object |
Fit model to extract samples from |
n |
Number of samples to simulate |
clean.names |
When |
... |
Other parameters to pass to descendent functions (when defined) |
For map2stan models, this function returns cleaned samples already contained in the object. These samples are cleaned of dimension attributes and the lp__ and dev traces that are used internally.
For map and other types, it uses the variance-covariance matrix and coefficients to define a multivariate Gaussian posterior to draw n samples from.
A named list (for map2stan) or data.frame containing samples for each parameter in the posterior distribution.
Richard McElreath
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.