[R] studentized and standarized residuals
Jen
jennifer.flegg at wwarn.org
Wed Aug 10 16:03:51 CEST 2011
Hi,
I must be doing something silly here, because I can't get the studentised
and standardised residuals from r output of a linear model to agree with
what I think they should be from equation form.
Thanks in advance,
Jennifer
x = seq(1,10)
y = x + rnorm(10)
mod = lm(y~x)
rstandard(mod)
residuals(mod)/(summary(mod)$sigma)
rstudent(mod)
residuals(mod)/(summary(mod)$sigma*sqrt(1-lm.influence(mod)$hat))
--
View this message in context: http://r.789695.n4.nabble.com/studentized-and-standarized-residuals-tp3732997p3732997.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list