powered by
Standardized Pearson residuals.
spearson(object)
Returns the residuals.
fitted model.
Kristian Hovde Liland
Takes ordinary Pearson residuals and standardizes them.
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