residualDiagnostics.lme | R Documentation |
residualDiagnostics methods for lme objects
## S3 method for class 'lme'
residualDiagnostics(
object,
ev.perc = 0.001,
robust = FALSE,
distr = "normal",
standardized = TRUE,
...
)
object |
An object with class |
ev.perc |
The extreme value percentile to use. Defaults to .001. |
robust |
A logical value, whether to use robust estimates or not.
Defaults to |
distr |
A character string specifying the assumed distribution. Currently “normal”, but future options may be supported in the future. |
standardized |
A logical value whether to use standardized pearson
residual values or not. Defaults to |
... |
Additional arguments. Not currently used. |
A logical (is.residualDiagnostics
) or
a residualDiagnostics object (list) for
as.residualDiagnostics
and residualDiagnostics
.
library(JWileymisc)
sleep[1,1] <- NA
m <- nlme::lme(extra ~ group, data = sleep, random = ~ 1 | ID,
na.action = na.omit)
residualDiagnostics(m)$Residuals
m <- nlme::lme(hp ~ mpg, data = mtcars, random = ~ 1 | cyl,
na.action = na.omit)
residualDiagnostics(m)$Residuals
rm(m, sleep)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.