1. to do an OLS :
a. ls (y value) c list regressors
i. e.g. ls wage y school exper male
b. open: object > New object > Equation > choose ordinary least square and enter
i. e.g. wage = c(1) + c(2)*school + c(3)*exper + c(4)*male
c. open: quick menu > estimate equation: then same as b.
Series: E
1,200
Sample 1 3294
Observations 3294
1,000
Mean 2.36e-16
800
Median -0.456719
Maximum 34.19367
600
Minimum -7.653676
Std. Dev. 3.044755
400
Skewness 2.088627
Kurtosis 15.05237
200
Jarque-Bera 22331.81
0
Probability 0.000000
-10 -5 0 5 10 15 20 25 30 35
8. Hypotheses testing:
a. Open: View > Coefficient diagnostics > Wald test
i. e.g. Ho: Beta1 = 1, then enter: C(2) = 1 (tut39 example )
(for any number of coefficients) follows either F or T dist
9. to measure elasticity:
a. use loglinear function for y and particualr xs, ls log(y) c log(x), remember that count
and dummy variables are not good for elasticity being measured
i. e.g. housing prices (lecture 3)to see how the lot size affects price, if lot
increases by 10 %, then house price increases by 4 %: ls log(price) c
log(lotsize)