Dear Statalist community,
My original task is shown in the picture below. I first simply regressed the variable "change":
I have now quite problems in understanding the plot and hoped you can help me to figure out what the meaning is behind. First I don't understand, why the scaling is different, how is this even possible? Second, As this looks rather crowded, I feel like that change_predicted is not a really good estimate, or rather saying required is probably low, as the fitted values don't really match change, right?
And then I tried to find the sum of squares explained by:
Unfortunately this number (45998.915) Doesn't match the regression table outcome where it says that SS - Model = 45569.6674. How is there a difference possible, I don't see the mistake..
Best,
Pauline

My original task is shown in the picture below. I first simply regressed the variable "change":
reg change heir lsc int_heir_lsc mb avg_opass_after avg_assets_after avg_mval_after own, vce(r)
*outreg2 using change.xls, append ctitle(Model 4) addtext(Controls, YES, FE, NO) keep (heir lsc lnagein)
predict change_predict
label variable change_predict "change predicted"
scatter change change_predict
*outreg2 using change.xls, append ctitle(Model 4) addtext(Controls, YES, FE, NO) keep (heir lsc lnagein)
predict change_predict
label variable change_predict "change predicted"
scatter change change_predict
And then I tried to find the sum of squares explained by:
predict change_hat, xb
label variable change_hat "predicted change"
scatter change change_hat
egen change_bar = mean(change_hat)
gen sse_component = (change_hat - change_bar)^2
summarize
//45998.915
di r(sum)
label variable change_hat "predicted change"
scatter change change_hat
egen change_bar = mean(change_hat)
gen sse_component = (change_hat - change_bar)^2
summarize
//45998.915
di r(sum)
Best,
Pauline
Comment