Description Usage Arguments Details Value Examples
View source: R/prediction_interval.R
Draw sample from the posterior predictive distribution.
1 2 3 4 5 6 7 8 9 10 11 |
object |
An object of class |
newdata |
An optional data.frame for which to compute
fit fitted values. Defaults to |
newdata_scale2 |
An optional data.frame for which to compute
predictions for the level 2 variance component.
Defaults to |
newdata_scale3 |
An optional data.frame for which to compute
predictions for the level 3 variance component.
Defaults to |
summary |
logical. Should the posterior samples be summarized
(defaults to |
new_level |
logical. Should the predictive distribution be for
new levels (defaults to |
cred |
numeric. credible interval (defaults to |
digits |
numeric. The desired number of digits for the summarized
estimates (defaults to |
... |
Currently ignored. |
When new_level = TRUE
, this provides the predictive
distribution with respect to the moderators for the sub-models.
For obtaining the predictive distribution for the observed
levels, set this to FALSE
which then includes the
"random" effects.
A data frame of fitted values (when summary = TRUE
), or
a matrix of the unsummarized posterior samples.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.