Link to home
Start Free TrialLog in
Avatar of PTRUSCOTT
PTRUSCOTT

asked on

How to calculate sum of squared errors when your regression has no constant

Dear Experts,
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:

http://en.wikipedia.org/wiki/Coefficient_of_determination

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?
Best Wishes,
Phil
ASKER CERTIFIED SOLUTION
Avatar of aburr
aburr
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
By "no constant" do you mean constant = 0 ?
Avatar of PTRUSCOTT
PTRUSCOTT

ASKER

Yes. I mean constant = zero. "Noconstant" is the keyword you use in Stata