Hi Trafim, Take a look at the following example:
set.seed(123) x <- runif(100) y <- 3 + 1.5*x + rnorm(100) fit <- lm(y ~ x) summary(fit) str(summary(fit)) summary(fit)$r.squared HTH, Jorge On Fri, Jan 22, 2010 at 10:10 AM, Trafim Vanishek <> wrote: > Dear all, > > I cannot find to explicitly get the R-squared or adjusted R-squared from > summary(lm()) > > Thanks a lot! > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. > [[alternative HTML version deleted]] ______________________________________________ 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.