[R] how to get the studentized residuals in lm()

Martin Maechler maechler at stat.math.ethz.ch
Mon Jul 3 18:13:08 CEST 2006


>>>>> "ronggui" == ronggui  <ronggui.huang at gmail.com>
>>>>>     on Mon, 3 Jul 2006 12:29:42 +0800 writes:

    >> help.search("studentized")
    ronggui> You will see:
    ronggui> studres(MASS)           Extract Studentized Residuals from a Linear Model

Yes.   But you don't even need another package.  Thanks to 
John Fox, there's
     rstudent()
     rstandard()
etc, even in the 'stats' package, with methods for "lm" and for 
"glm" objects.

And now, in R-devel (2.4.0-to-be),
   help.search("studentized")
will show the 'influence.measures' help page which contains rstudent().

Martin Maechler, ETH Zurich



    ronggui> 2006/7/3, zhijie zhang <epistat at gmail.com>:
    >> Dear friends,
    >> In s-plus, lm()  generates the the studentized residuals
    >> automatically for us, and In R, it seems don't have the results: After
    >> i fitted lm(), i use attibutes() to see the objects and didn't find
    >> studentized residuals .
    >> How to get the the studentized residuals in lm(),have i missed something?
    >> thanks very much!
    >> 
    >> --
    >> Kind Regards,
    >> Zhi Jie,Zhang ,PHD
    >> Department of Epidemiology
    >> School of Public Health
    >> Fudan University
    >> Tel:86-21-54237149
    >> 
    >> ______________________________________________
    >> R-help at stat.math.ethz.ch mailing list
    >> https://stat.ethz.ch/mailman/listinfo/r-help
    >> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
    >> 


    ronggui> -- 
    ronggui> $A;FHY9s(B
    ronggui> Department of Sociology
    ronggui> Fudan University

    ronggui> ______________________________________________
    ronggui> R-help at stat.math.ethz.ch mailing list
    ronggui> https://stat.ethz.ch/mailman/listinfo/r-help
    ronggui> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



More information about the R-help mailing list