Adjusted R-squared formula in lm()
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 -
df.int)/rdf)
Does that answer your question?
Ben Bolker