Re: [R] Obtaining the source code

2022-06-19 Thread Andrew Simmons
You can use getAnywhere On Sun, Jun 19, 2022, 13:23 Christofer Bogaso wrote: > Hi, > > I am trying to see the source code of rstandard function. I tried below, > > > methods('rstandard') > > [1] rstandard.glm* rstandard.lm* > > What do I need to do if I want to see the source code of rstandard.l

Re: [R] Obtaining the source code

2022-06-19 Thread John Fox
Dear Cristofer, > stats:::rstandard.lm function (model, infl = lm.influence(model, do.coef = FALSE), sd = sqrt(deviance(model)/df.residual(model)), type = c("sd.1", "predictive"), ...) { type <- match.arg(type) res <- infl$wt.res/switch(type, sd.1 = c(outer(sqrt(1 - infl$hat),