Linear regressions Flashcards
1
Q
Estimate linear regression with constant
A
reg [varlist]
2
Q
Estimate the fitted value of the dependent variable when the regressões take the value 0.
A
display _b[variable]*0 + _b[_cons]
3
Q
Predict the fitted values of the regressor.
A
predict [newvar], xb
If the regression is linear, it is enough to write: predict [newvar].
4
Q
Predict the value of the residuals.
A
predict [varname], residuals