I have an application that requires me to work out the R-Squared statistic of a regression from scratch. I got the formula from the following Web page:
This works fine for a normal regression model with a constant. If you select the noconstant option in either Excel or Stata then the Sum of Squared differences is totally different from the result of the formula shown on the Wikipedia page above.
Can anyone show me a link to the correct formula where there is no intercept?