[R] Adjusted R-squared formula in lm()

Ben Bolker bbolker at gmail.com
Mon Jan 28 21:25:55 CET 2013

Nicole Janz <nicolejanz <at> gmail.com> writes:

> What is the exact formula used in R lm() for the Adjusted R-squared? How can I
interpret it?

>From the code of summary.lm():

   ans$r.squared <- mss/(mss + rss)
        ans$adj.r.squared <- 1 - (1 - ans$r.squared) * ((n - 

  Does that answer your question?

  Ben Bolker

More information about the R-help mailing list