[R] Coefficient of determination when intercept is zero
endeitz at yahoo.com
Wed Jan 17 23:18:53 CET 2007
I am curious as to the "lm" calculation of R2 (multiple coefficient of
determination, I assume) when intercept is zero. I have 18 data points, two
First, a model with an intercept:
The $r.squared and the result from "cor" are the same, as I would expect.
Now we try a model with zero intercept:
Why has the $r.squared value increased to 0.9? And now the result from
"cor" is not the same? Is there a special way to calculate the coefficient
of determination when the intercept is zero?
View this message in context: http://www.nabble.com/Coefficient-of-determination-when-intercept-is-zero-tf3030776.html#a8420811
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help