# |
content
|
3 [+]
|
use
wagepan
, clear
All properties
key |
content |
command |
use |
indent |
0 |
options |
clear |
parameters |
wagepan |
|
4 [+]
|
xtset
nr year
All properties
key |
content |
command |
xtset |
indent |
0 |
parameters |
nr year |
|
5 [+]
|
generate
lhours = log(hours)
All properties
key |
content |
command |
generate |
indent |
0 |
parameters |
lhours = log(hours) |
|
7 [+]
|
forvalues
y = 1980/1987 {
All properties
key |
content |
command |
forvalues |
indent |
0 |
parameters |
y = 1980/1987 { |
|
8 [+]
|
quietly
{
All properties
key |
content |
command |
{ |
indent |
1 |
parameters |
|
prefix |
quietly |
|
9 [+]
|
eststo
clear
All properties
key |
content |
command |
eststo |
indent |
2 |
parameters |
clear |
|
10 [+]
|
regress
lwage educ lhours
if year == `y'
All properties
key |
content |
command |
regress |
if |
year == `y' |
indent |
2 |
parameters |
lwage educ lhours |
|
11 [+]
|
mfx
compute
, dyex
All properties
key |
content |
command |
mfx |
indent |
2 |
options |
dyex |
parameters |
compute |
|
12 [+]
|
mat
eta = e(Xmfx_dyex) \ e(Xmfx_se_dyex)
|
13 [+]
|
eststo
, add(eta_educ eta[1, 1] etase eta[2, 1])
|
14 [+]
|
regress
lwage educ lhours black hisp
if year == `y'
|
15 [+]
|
mfx
compute
, dyex
All properties
key |
content |
command |
mfx |
indent |
2 |
options |
dyex |
parameters |
compute |
|
16 [+]
|
mat
eta = e(Xmfx_dyex) \ e(Xmfx_se_dyex)
|
17 [+]
|
eststo
, add(eta_educ eta[1, 1] etase eta[2, 1])
|
18 [+]
|
regress
lwage educ exper expersq lhours black hisp
if year == `y'
|
19 [+]
|
mfx
compute
, dyex
All properties
key |
content |
command |
mfx |
indent |
2 |
options |
dyex |
parameters |
compute |
|
20 [+]
|
mat
eta = e(Xmfx_dyex) \ e(Xmfx_se_dyex)
|
21 [+]
|
mat
xbar = e(Xmfx_X)
All properties
key |
content |
command |
mat |
indent |
2 |
parameters |
xbar = e(Xmfx_X) |
|
22 [+]
|
scalar
mu2 = 2 * xbar[1, 2]
All properties
key |
content |
command |
scalar |
indent |
2 |
parameters |
mu2 = 2 * xbar[1, 2] |
|
23 [+]
|
lincom
exper + mu2 * expersq
All properties
key |
content |
command |
lincom |
indent |
2 |
parameters |
exper + mu2 * expersq |
|
24 [+]
|
eststo
, addscalars(eta_educ eta[1, 1] etase eta[2, 1] exper r(estimate) se r(se))
|
25 [+]
|
}
All properties
key |
content |
command |
} |
indent |
1 |
parameters |
|
|
26 [+]
|
esttab
_all
using lwage`y'.tex
, replace ti("Wage equations for `y'") ///
nomtitles nodepvars not se noobs ar2 booktabs ///
scalar(eta_educ etase exper se) ///
addnotes("eta_educ: semi-elasticity of lwage with respect to educ" ///
"etase: standard error of the semi-elasticity" ///
"exper: effect of exper on lwage at mean exper")
-
esttab _all using lwage`y'.tex, replace ti("Wage equations for `y'") ///
nomtitles nodepvars not se noobs ar2 booktabs ///
scalar(eta_educ etase exper se) ///
addnotes("eta_educ: semi-elasticity of lwage with respect to educ" ///
"etase: standard error of the semi-elasticity" ///
"exper: effect of exper on lwage at mean exper") ///
substitute("_cons" "Constant" "eta_educ" "$\eta_{educ}$" ///
"etase" "$\eta_{se}$")
|
34 [+]
|
}
All properties
key |
content |
command |
} |
indent |
0 |
parameters |
|
|
36 [+]
|
separate
lwage
, by(black | hisp) veryshortlabel
|
37 [+]
|
forvalues
y = 1981/1987 {
All properties
key |
content |
command |
forvalues |
indent |
0 |
parameters |
y = 1981/1987 { |
|
38 [+]
|
quietly
{
All properties
key |
content |
command |
{ |
indent |
1 |
parameters |
|
prefix |
quietly |
|
39 [+]
|
regress
lwage educ exper lhours
if year == `y'
|
40 [+]
|
scatter
lwage0 lwage1 lhours
if year==`y'
, msize(small) ///
scheme(s2mono) nodraw
|
43 [+]
|
avplot
lhours
, msize(small) nodraw scheme(s2mono) name(avplot`y', replace)
|
44 [+]
|
graph combine
scat`y' avplot`y'
, nodraw col(2) saving(lwage`y', replace)
|
46 [+]
|
}
All properties
key |
content |
command |
} |
indent |
1 |
parameters |
|
|
47 [+]
|
}
All properties
key |
content |
command |
} |
indent |
0 |
parameters |
|
|
49 [+]
|
graph use
lwage1984
All properties
key |
content |
command |
graph use |
indent |
0 |
parameters |
lwage1984 |
|