spearson function

Standardized Pearson residuals

Standardized Pearson residuals

Standardized Pearson residuals.

spearson(object)

Arguments

  • object: fitted model.

Details

Takes ordinary Pearson residuals and standardizes them.

Returns

Returns the residuals.

Author(s)

Kristian Hovde Liland

Examples

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)
  • Maintainer: Kristian Hovde Liland
  • License: GPL (>= 2)
  • Last published: 2025-01-14