[R] R-squared value for linear regression passing through origin using lm()

Etienne Toffin etoffin at altern.org
Thu Oct 18 13:02:43 CEST 2007


Hi,
A have small technical question about the calculation of R-squared  
using lm().
In a study case with experimental values, it seems more logical to  
force the regression line to pass through origin with lm(y ~ x +0).  
However, R-squared  values are higher in this case than when I  
compute the linear regression with lm(y ~ x).
It seems to be surprising to me: is this result normal ? Is there any  
problem in the R-squared value calculated in this case ?
Etienne Toffin



More information about the R-help mailing list