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 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

## 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]