residuals.clme: Various types of residuals

Description Usage Arguments Details Value See Also Examples

View source: R/utilities.r

Description

Computes several types of residuals for objects of class clme.

Usage

1
2
3
4
5
## S3 method for class 'clme'
residuals(object, type = "FM", ...)

## S3 method for class 'summary.clme'
residuals(object, type = "FM", ...)

Arguments

object

object of class clme.

type

type of residual (for mixed-effects models only).

...

space for additional arguments

Details

For fixed-effects models Y = X*b + e, residuals are given as

ehat = Y - X*betahat

. For mixed-effects models Y = X*b + U*xi + e, three types of residuals are available. PA = Y - X*betahat\ SS = U*xihat\ FM = Y - X*betahat - U*xihat

Value

Returns a numeric matrix.

See Also

CLME-package clme

Examples

1
2
3
4
5
6
7
8
9
## 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)

CLME documentation built on July 8, 2020, 5:49 p.m.