xtlhazard: Linear discrete time hazard estimation using Stata
Harald Tauchmann1,2,3
1FAU, 2RWI, 3CINCH
xtlhazard : Linear discrete time hazard estimation using Stata - - PowerPoint PPT Presentation
xtlhazard : Linear discrete time hazard estimation using Stata Harald Tauchmann 1 , 2 , 3 1 FAU, 2 RWI, 3 CINCH May 24 th 2019 2019 German Stata Users Group Meeting work in progress Outline Motivation 1 Theory 2 Monte Carlo Simulations 3
1FAU, 2RWI, 3CINCH
1
2
3
4
5
6
Harald Tauchmann (FAU) xtlhazard May 24th 2019 2 / 29
Motivation
Harald Tauchmann (FAU) xtlhazard May 24th 2019 3 / 29
Motivation
Harald Tauchmann (FAU) xtlhazard May 24th 2019 4 / 29
Motivation Does Linear Fixed Effects Estimation Work?
Ti , − 1 Ti , . . . , − 1 Ti , Ti−1 Ti
Harald Tauchmann (FAU) xtlhazard May 24th 2019 5 / 29
Motivation Does Linear Fixed Effects Estimation Work?
Harald Tauchmann (FAU) xtlhazard May 24th 2019 6 / 29
Theory The Data Generating Process
with yit−≡[yi0...yit−1]
Harald Tauchmann (FAU) xtlhazard May 24th 2019 7 / 29
Theory Estimation by OLS
it
it
it
Harald Tauchmann (FAU) xtlhazard May 24th 2019 8 / 29
Theory First-Differences Estimation
it
it |ai, xit, xit−1, yit− = 0)
Within-Transformation
Harald Tauchmann (FAU) xtlhazard May 24th 2019 9 / 29
Theory First-Differences Estimation with Constant
it
Harald Tauchmann (FAU) xtlhazard May 24th 2019 10 / 29
Theory Asymptotic Properties
N
i=1 Ti
t=2
′
it
N
i=1 Ti
t=2
′
it
N
i=1 Ti
t=2
′
it
N
i=1 Ti
t=2
′
it ˜
Harald Tauchmann (FAU) xtlhazard May 24th 2019 11 / 29
Theory Asymptotic Properties
adjust =
i=1 Ti
t=2
it
N
i=1 Ti
t=2
it
i=1 Ti
t=2
it
N
i=1 Ti
t=2
ityit
Harald Tauchmann (FAU) xtlhazard May 24th 2019 12 / 29
Theory Asymptotic Properties
adjust|X) = W × Var(bFDC|X) × W
Harald Tauchmann (FAU) xtlhazard May 24th 2019 13 / 29
Theory Higher-Order Differences
adjust hinge on Cov(ai, ∆xit) = 0
Higher-Order
adjust
Harald Tauchmann (FAU) xtlhazard May 24th 2019 14 / 29
Monte Carlo Simulations Design
adjust (adjusted first-differences)
Harald Tauchmann (FAU) xtlhazard May 24th 2019 15 / 29
Monte Carlo Simulations Design
it = 0.1 + ai + ζit, with
it
it−1 + νit, with
it = 0.075 + ai + ηit, with ηit ∼ iid. U(0, 0.025t)
Harald Tauchmann (FAU) xtlhazard May 24th 2019 16 / 29
Monte Carlo Simulations Large Sample Results
bOLS bWI bFD bFDC bFDC
adjust
Coef. S.E. Coef. S.E. Coef. S.E. Coef. S.E. Coef. S.E. xST
it
stationary
ˆ β
1.6671 0.0012 0.9024 0.0025 0.7072 0.0022 0.5008 0.0019 0.9980 0.0037
ˆ α
0.0002 0.1160 0.0005 0.2899 0.0001 0.0955 0.0007 xRW
it
follows random walk
ˆ β
1.4267 0.0009 0.9472 0.0019 1.0011 0.0022 1.0000 0.0018 0.9999 0.0018
ˆ α
0.0134 0.0002 0.1072 0.0004 0.2882 0.0001 0.0951 0.0004 xTR
it
trended with increasing variance around trend
ˆ β
1.5715 0.0012 6.0363 0.0019 4.4998 0.0020 0.6725 0.0019 1.0075 0.0028
ˆ α
0.0002
0.0004 0.2950 0.0001 0.0936 0.0006 Notes: True coefficient values: β = 1, α = 0.1; N = 4 · 107, T = 5; the # of observations for xST
it
is 71 748 906, the corresponding #s of observations for xRW
it
is 71 823 746 and for xTR
it
being trended 72 218 321. For bOLS the #s of observations are higher by 4 · 107 observations, since the first wave is not eliminated by the within or the first-differences transformation.
adjust
adjust
Harald Tauchmann (FAU) xtlhazard May 24th 2019 17 / 29
Monte Carlo Simulations Small Sample Results
bOLS bWI bFD bFDC bFDC
adjust
Mean S.D. Mean S.D. Mean S.D. Mean S.D. Mean S.D. xit and ai random xST
it
stationary
ˆ β
1.6755 0.3808 0.9208 0.7885 0.7240 0.7038 0.5133 0.5902 1.0167 1.1728
ˆ α
0.0746 0.1128 0.1549 0.2903 0.0171 0.0923 0.2286 xRW
it
follows random walk
ˆ β
1.4278 0.3004 0.9485 0.6089 1.0068 0.69504 1.0019 0.5862 1.0027 0.5856
ˆ α
0.0138 0.0582 0.1068 0.1195 0.2887 0.0170 0.0954 0.1131 xTR
it
trended with increasing variance around trend
ˆ β
1.5763 0.3654 6.0427 0.6069 4.5072 0.67781 0.6691 0.6155 0.9940 0.9147
ˆ α
0.0733
0.1167 0.2950 0.0187 0.0965 0.1909 Notes: True coefficient values: β = 1, α = 0.1; N = 400, T = 5; 10 000 replications.
Harald Tauchmann (FAU) xtlhazard May 24th 2019 18 / 29
Monte Carlo Simulations Small Sample Results
bOLS bWI bFD bFDC bFDC
adjust
Mean S.D. Mean S.D. Mean S.D. Mean S.D. Mean S.D. xit and ai fixed xST
it
stationary
ˆ β
1.6443 0.3826 1.3168 0.7160 0.8548 0.6678 0.5351 0.5790 1.0326 1.1189
ˆ α
0.0743 0.0324 0.1390 0.2853 0.0168 0.0865 0.2161 xRW
it
follows random walk
ˆ β
1.4208 0.3227 1.6595 0.5408 1.5261 0.6514 0.9350 0.5921 0.9807 0.6203
ˆ α
0.0125 0.0627
0.1054 0.2852 0.0166 0.0969 0.1209 xTR
it
trended with increasing variance around trend
ˆ β
1.5638 0.3795 5.9851 0.5921 4.5432 0.6561 0.6581 0.6064 0.9792 0.9023
ˆ α
0.0751
0.1113 0.2903 0.0177 0.0973 0.1855 Notes: True coefficient values: β = 1, α = 0.1; N = 400, T = 5; 10 000 replications.
Harald Tauchmann (FAU) xtlhazard May 24th 2019 19 / 29
Stata Implementation
Harald Tauchmann (FAU) xtlhazard May 24th 2019 20 / 29
Stata Implementation
Harald Tauchmann (FAU) xtlhazard May 24th 2019 21 / 29
Real Data Application Based on Brown and Laschever (2012)
Harald Tauchmann (FAU) xtlhazard May 24th 2019 22 / 29
Real Data Application Based on Brown and Laschever (2012)
adjust
Harald Tauchmann (FAU) xtlhazard May 24th 2019 23 / 29
Real Data Application Based on Brown and Laschever (2012)
bWI ‡ bFDC bFDC
adjust
Coef. S.E. Coef. S.E. Coef. S.E. change in pension wealth of peers (t − 1) 0.003 ∗∗ 0.001 0.003 ∗∗ 0.001
0.095 change in pension wealth of peers (t − 2) 0.002 ∗ 0.001 0.002 0.001
0.054 change in own pension wealth 0.033 ∗∗∗ 0.011
0.009
0.041 change in own peak value
0.002
0.001
0.003 Notes: 21 290 observations, 8 320 teachers, and 586 school clusters for within-transformation estimation. 12 968 observations, 7 088 teachers, and 578 school clusters for first-differences estimation. N redundant
adjust
adjust conflict with retirement incentives for
Harald Tauchmann (FAU) xtlhazard May 24th 2019 24 / 29
Real Data Application Based on Brown and Laschever (2012)
kernel density −1 1 2 Predicted Conditional Retirement Probability
b
WI
b
FDC
b
FDC adjust
Harald Tauchmann (FAU) xtlhazard May 24th 2019 25 / 29
Real Data Application Based on Brown and Laschever (2012)
adjust centered to
adjust: 19.2%
Harald Tauchmann (FAU) xtlhazard May 24th 2019 26 / 29
Real Data Application Based on Brown and Laschever (2012)
bWI ‡ bFDC bFDC
adjust
Coef. S.E. Coef. S.E. Coef. S.E. change in pension wealth of peers (t − 1) 0.003 ∗∗ 0.001 0.003 ∗∗ 0.001
0.095 change in pension wealth of peers (t − 2) 0.002 ∗ 0.001 0.002 0.001
0.054 change in own pension wealth 0.033 ∗∗∗ 0.011
0.009
0.041 change in own peak value
0.002
0.001
0.003 . . . age ≥ 54 years
0.013
0.015 age ≥ 55 years
0.013
0.015
0.029 age ≥ 56 years
0.012
0.014
0.011 age ≥ 57 years
0.013
0.014 0.001 0.010 age ≥ 58 years
0.012
0.014 0.008 0.014 age ≥ 59 years
0.014
0.015 0.030 ∗∗∗ 0.010 age ≥ 60 years
0.015
0.017 0.056 ∗∗ 0.022 age ≥ 61 years
0.017
0.019 0.034 0.028 age ≥ 62 years 0.027 0.020 0.023 0.021 0.060 ∗∗∗ 0.020 age ≥ 63 years
0.021 0.001 0.023
0.031 age ≥ 64 years
0.021
0.021
0.030 age ≥ 65 years 0.000 0.025
0.026 0.037 0.046 age ≥ 66 years
0.026
0.026
0.034 Notes: 21 290 observations, 8 320 teachers, and 586 school clusters for within-transformation estimation. 12 968 observations, 7 088 teachers, and 578 school clusters for first-differences estimation. N redundant
Harald Tauchmann (FAU) xtlhazard May 24th 2019 27 / 29
Real Data Application Based on Brown and Laschever (2012)
adjust does not yield a very distinct pattern for baseline
Harald Tauchmann (FAU) xtlhazard May 24th 2019 28 / 29
Conclusions
Harald Tauchmann (FAU) xtlhazard May 24th 2019 29 / 29
Backup
it |ai, xi1, . . . , xiTi, yit− = 0
t
s=1
T
Ti=t+1
s=t
Ti
s=1
s=t
T
s=1
xtlhazard May 24th 2019 30 / 29
Backup
iT |ai, xi1, . . . , xiT, yiT− = 0
s=1
i2 |ai, xi1, xi2, yi1 = 0
it |ai, xit, xit−1, yit− = 0).
Harald Tauchmann (FAU) xtlhazard May 24th 2019 31 / 29
Backup
adjust
i=1 Ti
t=j+1
it
N
i=1 Ti
t=j+1
it
i=1 Ti
t=j+1
it
N
i=1 Ti
t=j+1
ityit
Harald Tauchmann (FAU) xtlhazard May 24th 2019 32 / 29