Dear Jen, Actually you can check out what R does by looking at the source.
# first type the name of the function > rstandard function (model, ...) UseMethod("rstandard") <environment: namespace:stats> # ?methods will list you the corresponding functions > methods("rstandard") [1] rstandard.glm rstandard.lm # choose rstandard.lm > rstandard.lm function (model, infl = lm.influence(model, do.coef = FALSE), sd = sqrt(deviance(model)/df.residual(model)), ...) { res <- infl$wt.res/(sd * sqrt(1 - infl$hat)) res[is.infinite(res)] <- NaN res } # in case the function is not visible, # you can use <package-name>:::<function-name> to display it stats:::rstandard.lm Best, Denes > Thanks Patrick - at least I know I wasn't being too silly :-) > Jen > > -- > View this message in context: > http://r.789695.n4.nabble.com/studentized-and-standarized-residuals-tp3732997p3733173.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.