residuals.clme {CLME} | R Documentation |
Various types of residuals
Description
Computes several types of residuals for objects of class clme
.
Usage
## S3 method for class 'clme'
residuals(object, type = "FM", ...)
## S3 method for class 'summary.clme'
residuals(object, type = "FM", ...)
Arguments
object |
object of class |
type |
type of residual (for mixed-effects models only). |
... |
space for additional arguments |
Details
For fixed-effects models Y = X\beta + \epsilon
, residuals are given as
\hat{e} = Y - X\hat{\beta}
.
For mixed-effects models Y = X\beta + + U\xi + \epsilon
, three types of residuals are available.
PA = Y - X\hat{\beta}
\
SS = U\hat{\xi}
\
FM = Y - X\hat{\beta} - U\hat{\xi}
Value
Returns a numeric matrix.
See Also
Examples
## Not run:
data( rat.blood )
cons <- list(order = "simple", decreasing = FALSE, node = 1 )
clme.out <- clme(mcv ~ time + temp + sex + (1|id), data = rat.blood ,
constraints = cons, seed = 42, nsim = 0)
residuals( clme.out, type='PA' )
## End(Not run)
[Package CLME version 2.0-12 Index]