Learn R Programming

mixlm (version 1.4.0)

spearson: Standardized Pearson residuals

Description

Standardized Pearson residuals.

Usage

spearson(object)

Value

Returns the residuals.

Arguments

object

fitted model.

Author

Kristian Hovde Liland

Details

Takes ordinary Pearson residuals and standardizes them.

Examples

Run this code
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