Learn R Programming

mixlm (version 1.2.6)

spearson: Standardized Pearson residuals

Description

Standardized Pearson residuals.

Usage

spearson(object)

Arguments

object

fitted model.

Value

Returns the residuals.

Details

Takes ordinary Pearson residuals and standardizes them.

Examples

Run this code
# NOT RUN {
data <- data.frame(y = rnorm(8),
				   x = factor(c('a','a','a','a','b','b','b','b')),
				   z = factor(c('a','a','b','b','a','a','b','b')))
mod <- lm(y ~ x + z, data=data)
spearson(mod)
# }

Run the code above in your browser using DataLab