Description Usage Arguments Value Examples
View source: R/postestimation.R
Draw from the posterior predictive distribution of the outcome.
1 2 |
object |
An object of class |
newdata |
Optional data frame containing the variables to use to
predict. If |
nsamples |
A positive integer indicating the number of posterior samples
to use. If |
seed |
Optional integer defining the seed for the pseudo-random number generator. |
... |
Currently ignored. |
A matrix of size S
by N
, where S
is the number of simulations from
the posterior predictive distribution, and N
is the number of data points.
1 2 | # continued from ?hsstan
posterior_predict(hs.biom)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.