| predict.rlmerMod | R Documentation |
By default (interval = "none") returns the same numeric vector
as the lme4-style point prediction (preserved byte-for-byte from the
pre-existing predict method). With interval = "confidence" or
"prediction", returns a data frame with columns fit,
lwr, upr, se.
## S3 method for class 'rlmerMod'
predict(
object,
newdata = NULL,
re.form = NULL,
ReForm,
REForm,
REform,
terms = NULL,
type = c("link", "response"),
allow.new.levels = FALSE,
na.action = na.pass,
interval = c("none", "confidence", "prediction"),
level = 0.95,
...
)
object |
An |
newdata, re.form, ReForm, REForm, REform, terms, type, allow.new.levels, na.action, ... |
See the lme4 |
interval |
One of |
level |
Coverage level for the interval; default 0.95. |
The fixed-effect contribution to the SE uses the robust cluster
sandwich vcov(object, type = "sandwich"); the random-effects
contribution (when REs are part of the prediction) is computed from
the partial influence function of \hat{u} (the local-shift
sensitivity). For interval = "prediction" the additional
residual variance \hat{\sigma}^2 is added. Intervals are
fit +/- z * se with z = \Phi^{-1}((1 + level)/2); for
small numbers of clusters the normal approximation may under-cover,
and a bootstrap CI (via confint(..., method = "boot")) is
preferable.
A numeric vector (when interval = "none") or a data
frame with columns fit, lwr, upr, se.
vcov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.