FUN.predict | R Documentation |
Suggestion of functions to obtain confidence intervals with mixed models
predict_merTools(object, newdata, level, conditional, interval, ...)
predict_AICcmodavg(object, newdata, level, conditional, interval, ...)
object |
a model |
newdata |
the dataset used to make the predictions |
level |
the confidence level for the intervals |
conditional |
are the predictions conditional to the random effect? (if any) |
interval |
the type of interval, prediction or confidence |
... |
not used |
predict_merTools is based on the predictInterval
function of the merTools package
and is only compatible with lmer
models.
predict_AICcmodavg is based on the predictSE
function of the AICcmodavg package
and is compatible with lmer
, lme
, and gls
models. It can only be used to obtain confidence intervals.
See the details of the documentation of these functions for more information about the validity of the intervals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.