`I am reading the book "Introduction to linear regression analysis" 5th by Douglas.
In the chapter 3 for the multiple linear regression for model $y = X\beta+\epsilon$, it computed $SSR = \hat{\beta}'X'y - \frac{(\sum_1^n{y_i})^2}{n}$ which I believe it is right. Here SSR is the regression sum of squares (i.e the variance from the model)
But just several pages later when discussing regression on subset, it claimed the $SSR = \hat{\beta}'X'y$ without any proof on the same model.
I am confused about the second equation, and believe it is false. But all late discussion is base on the second SSR equation. Can anyone explains what happens here?
Clarification:
If first comment below is true, then we know the first column of X is constant $(1,1,\cdots,1)$, so it indicates $\sum{y_i} = 0$, then under this condition the above two equations are the same, no trouble.
The question is still unsolved. Any help will be appreciated