[R] Quick question about lm()
wangtong at usc.edu
Wed Sep 6 10:21:10 CEST 2006
Thanks a lot for your help.
----- Original Message -----
From: Christos Hatzis <christos at nuverabio.com>
Date: Monday, September 4, 2006 10:54 pm
Subject: RE: [R] Quick question about lm()
To: 'Tong Wang' <wangtong at usc.edu>, r-help at stat.math.ethz.ch
> my.lm <- lm(y ~ x, data=my.data)
> Then if you try:
> you will see the components of the summary.lm object. The
> coefficients and
> t-statistics can be extracted by
> and similarly for the r-squared and other statistics provided in
> the summary
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Tong Wang
> Sent: Tuesday, September 05, 2006 1:35 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Quick question about lm()
> 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.
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.htmland provide commented, minimal, self-contained,
> reproducible code.
More information about the R-help