Thanks a lot for your help. tong
----- Original Message ----- From: Christos Hatzis <[EMAIL PROTECTED]> Date: Monday, September 4, 2006 10:54 pm Subject: RE: [R] Quick question about lm() To: 'Tong Wang' <[EMAIL PROTECTED]>, [email protected] > Say, > > my.lm <- lm(y ~ x, data=my.data) > > Then if you try: > > names(summary(my.lm)) > > you will see the components of the summary.lm object. The > coefficients and > t-statistics can be extracted by > > summary(my.lm)$coefficients > > and similarly for the r-squared and other statistics provided in > the summary > report. > > -Christos > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Tong Wang > Sent: Tuesday, September 05, 2006 1:35 AM > To: [email protected] > Subject: [R] Quick question about lm() > > Hi, > Feel awkward to ask , but really couldn't find a answer > anywhere, How > could I extract the R^2 and t-stat. from the > result of lm()? > Thanks a lot. > > best > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.htmland provide commented, minimal, self-contained, > reproducible code. > > > > ______________________________________________ [email protected] 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.
