Diff
checker
Texto
Texto
Imagens
Documentos
Excel
Pastas
Legal
Enterprise
Aplicativo para desktop
Preços
Fazer login
Baixar o Diffchecker Desktop
Comparar texto
Encontre a diferença entre dois arquivos de texto
Ferramentas
Histórico
Editor live
Ocultar espaços em branco
Recolher inalteradas
Sem quebra de linha
Layout
Dividido
Unificado
Nível de detalhe
Inteligente
Palavra
Caractere
Estilos de texto
Alterar aparência
Realce de sintaxe
Escolher sintaxe
Ignorar
Transformar texto
Ir à primeira mudança
Editar entrada
Diffchecker Desktop
A maneira mais segura de usar o Diffchecker. Obtenha o aplicativo Diffchecker Desktop: seus diffs nunca saem do seu computador!
Obter Desktop
test file main vs 203
Criado
há 2 anos
O diff nunca expira
Limpar
Exportar
Compartilhar
Explicar
0 remoções
Linhas
Total
Removido
Caracteres
Total
Removido
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
444 linhas
Copiar tudo
0 adições
Linhas
Total
Adicionado
Caracteres
Total
Adicionado
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
444 linhas
Copiar tudo
.
.
. clear all
. clear all
.
.
. /*=========================================================================
. /*=========================================================================
> 1: Load data
> 1: Load data
> ===========================================================================*/
> ===========================================================================*/
. use "example31.dta", clear
. use "example31.dta", clear
.
.
.
.
. /*=========================================================================
. /*=========================================================================
> 2: Run tests
> 2: Run tests
> ===========================================================================*/
> ===========================================================================*/
.
.
. graph drop _all
. graph drop _all
.
.
. *------------------------ 2.1: Replicate 2a and test basic funcionality ----------------------------------
. *------------------------ 2.1: Replicate 2a and test basic funcionality ----------------------------------
.
.
. xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5)
. xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5)
No proxy or instruments provided. Implementing OLS estimator
No proxy or instruments provided. Implementing OLS estimator
Linear regression, absorbing indicators Number of obs = 9,000
Linear regression, absorbing indicators Number of obs = 9,000
Absorbed variable: i No. of categories = 1,000
Absorbed variable: i No. of categories = 1,000
F(21, 7979) = 209.66
F(21, 7979) = 209.66
Prob > F = 0.0000
Prob > F = 0.0000
R-squared = 0.7545
R-squared = 0.7545
Adj R-squared = 0.7231
Adj R-squared = 0.7231
Root MSE = 0.9954
Root MSE = 0.9954
------------------------------------------------------------------------------
------------------------------------------------------------------------------
y | Coefficient Std. err. t P>|t| [95% conf. interval]
y | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
-------------+----------------------------------------------------------------
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
|
|
t |
t |
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
|
|
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
------------------------------------------------------------------------------
------------------------------------------------------------------------------
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
.
.
. * Testing xtset options
. * Testing xtset options
.
.
. xtevent y eta, policyvar(z) window(5) plot
. xtevent y eta, policyvar(z) window(5) plot
Using options panelvar and timevar from xtset
Using options panelvar and timevar from xtset
No proxy or instruments provided. Implementing OLS estimator
No proxy or instruments provided. Implementing OLS estimator
Linear regression, absorbing indicators Number of obs = 9,000
Linear regression, absorbing indicators Number of obs = 9,000
Absorbed variable: i No. of categories = 1,000
Absorbed variable: i No. of categories = 1,000
F(21, 7979) = 209.66
F(21, 7979) = 209.66
Prob > F = 0.0000
Prob > F = 0.0000
R-squared = 0.7545
R-squared = 0.7545
Adj R-squared = 0.7231
Adj R-squared = 0.7231
Root MSE = 0.9954
Root MSE = 0.9954
------------------------------------------------------------------------------
------------------------------------------------------------------------------
y | Coefficient Std. err. t P>|t| [95% conf. interval]
y | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
-------------+----------------------------------------------------------------
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
|
|
t |
t |
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
|
|
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
------------------------------------------------------------------------------
------------------------------------------------------------------------------
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
. xtevent y eta, policyvar(z) panelvar(i) window(5) plot
. xtevent y eta, policyvar(z) panelvar(i) window(5) plot
Using options panelvar and timevar from xtset
Using options panelvar and timevar from xtset
No proxy or instruments provided. Implementing OLS estimator
No proxy or instruments provided. Implementing OLS estimator
Linear regression, absorbing indicators Number of obs = 9,000
Linear regression, absorbing indicators Number of obs = 9,000
Absorbed variable: i No. of categories = 1,000
Absorbed variable: i No. of categories = 1,000
F(21, 7979) = 209.66
F(21, 7979) = 209.66
Prob > F = 0.0000
Prob > F = 0.0000
R-squared = 0.7545
R-squared = 0.7545
Adj R-squared = 0.7231
Adj R-squared = 0.7231
Root MSE = 0.9954
Root MSE = 0.9954
------------------------------------------------------------------------------
------------------------------------------------------------------------------
y | Coefficient Std. err. t P>|t| [95% conf. interval]
y | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
-------------+----------------------------------------------------------------
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
|
|
t |
t |
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
|
|
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
------------------------------------------------------------------------------
------------------------------------------------------------------------------
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
. xtevent y eta, policyvar(z) timevar(t) window(5) plot
. xtevent y eta, policyvar(z) timevar(t) window(5) plot
Using options panelvar and timevar from xtset
Using options panelvar and timevar from xtset
No proxy or instruments provided. Implementing OLS estimator
No proxy or instruments provided. Implementing OLS estimator
Linear regression, absorbing indicators Number of obs = 9,000
Linear regression, absorbing indicators Number of obs = 9,000
Absorbed variable: i No. of categories = 1,000
Absorbed variable: i No. of categories = 1,000
F(21, 7979) = 209.66
F(21, 7979) = 209.66
Prob > F = 0.0000
Prob > F = 0.0000
R-squared = 0.7545
R-squared = 0.7545
Adj R-squared = 0.7231
Adj R-squared = 0.7231
Root MSE = 0.9954
Root MSE = 0.9954
------------------------------------------------------------------------------
------------------------------------------------------------------------------
y | Coefficient Std. err. t P>|t| [95% conf. interval]
y | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
-------------+----------------------------------------------------------------
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
|
|
t |
t |
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
|
|
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
------------------------------------------------------------------------------
------------------------------------------------------------------------------
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
.
.
.
.
. /* Must fail
. /* Must fail
> xtevent y eta, policyvar(z) panelvar(z) window(5)
> xtevent y eta, policyvar(z) panelvar(z) window(5)
> xtevent y eta, policyvar(z) timevar(z) window(5)
> xtevent y eta, policyvar(z) timevar(z) window(5)
> */
> */
.
.
. * Testing noci, nosupt, nozeroline, nonormlabel
. * Testing noci, nosupt, nozeroline, nonormlabel
. xtevent y eta, policyvar(z) timevar(t) window(5)
. xtevent y eta, policyvar(z) timevar(t) window(5)
Using options panelvar and timevar from xtset
Using options panelvar and timevar from xtset
No proxy or instruments provided. Implementing OLS estimator
No proxy or instruments provided. Implementing OLS estimator
Linear regression, absorbing indicators Number of obs = 9,000
Linear regression, absorbing indicators Number of obs = 9,000
Absorbed variable: i No. of categories = 1,000
Absorbed variable: i No. of categories = 1,000
F(21, 7979) = 209.66
F(21, 7979) = 209.66
Prob > F = 0.0000
Prob > F = 0.0000
R-squared = 0.7545
R-squared = 0.7545
Adj R-squared = 0.7231
Adj R-squared = 0.7231
Root MSE = 0.9954
Root MSE = 0.9954
------------------------------------------------------------------------------
------------------------------------------------------------------------------
y | Coefficient Std. err. t P>|t| [95% conf. interval]
y | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
-------------+----------------------------------------------------------------
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
|
|
t |
t |
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
|
|
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
------------------------------------------------------------------------------
------------------------------------------------------------------------------
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
. xteventplot, noci
. xteventplot, noci
option noci has been specified. Confidence intervals won't be displayed
option noci has been specified. Confidence intervals won't be displayed
. xteventplot, nosupt
. xteventplot, nosupt
option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated
option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated
. xteventplot, nozeroline
. xteventplot, nozeroline
option nozeroline has been specified. The reference line at 0 won't be displayed
option nozeroline has been specified. The reference line at 0 won't be displayed
. xteventplot, nonormlabel
. xteventplot, nonormlabel
option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon
option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon
> ding to the normalized coefficient won't be displayed
> ding to the normalized coefficient won't be displayed
.
.
. * Test combinations
. * Test combinations
. xteventplot, noci nozeroline
. xteventplot, noci nozeroline
option noci has been specified. Confidence intervals won't be displayed
option noci has been specified. Confidence intervals won't be displayed
option nozeroline has been specified. The reference line at 0 won't be displayed
option nozeroline has been specified. The reference line at 0 won't be displayed
. xteventplot, noci nonormlabel
. xteventplot, noci nonormlabel
option noci has been specified. Confidence intervals won't be displayed
option noci has been specified. Confidence intervals won't be displayed
option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon
option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon
> ding to the normalized coefficient won't be displayed
> ding to the normalized coefficient won't be displayed
. xteventplot, nosupt nozeroline
. xteventplot, nosupt nozeroline
option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated
option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated
option nozeroline has been specified. The reference line at 0 won't be displayed
option nozeroline has been specified. The reference line at 0 won't be displayed
. xteventplot, nosupt nonormlabel
. xteventplot, nosupt nonormlabel
option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated
option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated
option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon
option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon
> ding to the normalized coefficient won't be displayed
> ding to the normalized coefficient won't be displayed
.
.
. * A common axis plot with labels
. * A common axis plot with labels
. gen y2 = y + 5
. gen y2 = y + 5
. xtevent y eta, policyvar(z) timevar(t) window(5)
. xtevent y eta, policyvar(z) timevar(t) window(5)
Using options panelvar and timevar from xtset
Using options panelvar and timevar from xtset
No proxy or instruments provided. Implementing OLS estimator
No proxy or instruments provided. Implementing OLS estimator
Linear regression, absorbing indicators Number of obs = 9,000
Linear regression, absorbing indicators Number of obs = 9,000
Absorbed variable: i No. of categories = 1,000
Absorbed variable: i No. of categories = 1,000
F(21, 7979) = 209.66
F(21, 7979) = 209.66
Prob > F = 0.0000
Prob > F = 0.0000
R-squared = 0.7545
R-squared = 0.7545
Adj R-squared = 0.7231
Adj R-squared = 0.7231
Root MSE = 0.9954
Root MSE = 0.9954
------------------------------------------------------------------------------
------------------------------------------------------------------------------
y | Coefficient Std. err. t P>|t| [95% conf. interval]
y | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
-------------+----------------------------------------------------------------
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
|
|
t |
t |
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
8 | .282378 .0446025 6.33 0.000 .1949454 .3698106
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
11 | .835558 .0456976 18.28 0.000 .7459787 .9251373
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
|
|
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
_cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402
------------------------------------------------------------------------------
------------------------------------------------------------------------------
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
. loc lab : di %-9.2f `=e(y1)'
. loc lab : di %-9.2f `=e(y1)'
. loc lab=strtrim("`lab'")
. loc lab=strtrim("`lab'")
. xteventplot, nonormlabel ylab(-3 0 `"0 (`lab')"' 3) name(g1) /* " */
. xteventplot, nonormlabel ylab(-3 0 `"0 (`lab')"' 3) name(g1) /* " */
option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon
option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon
> ding to the normalized coefficient won't be displayed
> ding to the normalized coefficient won't be displayed
. xtevent y2 eta, policyvar(z) timevar(t) window(5)
. xtevent y2 eta, policyvar(z) timevar(t) window(5)
Using options panelvar and timevar from xtset
Using options panelvar and timevar from xtset
No proxy or instruments provided. Implementing OLS estimator
No proxy or instruments provided. Implementing OLS estimator
Linear regression, absorbing indicators Number of obs = 9,000
Linear regression, absorbing indicators Number of obs = 9,000
Absorbed variable: i No. of categories = 1,000
Absorbed variable: i No. of categories = 1,000
F(21, 7979) = 209.66
F(21, 7979) = 209.66
Prob > F = 0.0000
Prob > F = 0.0000
R-squared = 0.7545
R-squared = 0.7545
Adj R-squared = 0.7231
Adj R-squared = 0.7231
Root MSE = 0.9954
Root MSE = 0.9954
------------------------------------------------------------------------------
------------------------------------------------------------------------------
y2 | Coefficient Std. err. t P>|t| [95% conf. interval]
y2 | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
-------------+----------------------------------------------------------------
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505
_k_eq_m4 | .1011971 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m4 | .1011971 .1131376 0.89 0.371 -.120582 .3229763
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581162
_k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581162
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579538 1.224375
_k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579538 1.224375
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343268 1.432118
_k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343268 1.432118
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
_k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073
|
|
t |
t |
8 | .2823779 .0446025 6.33 0.000 .1949453 .3698105
8 | .2823779 .0446025 6.33 0.000 .1949453 .3698105
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873
11 | .835558 .0456976 18.28 0.000 .7459787 .9251372
11 | .835558 .0456976 18.28 0.000 .7459787 .9251372
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798
|
|
_cons | 6.314217 .1041623 60.62 0.000 6.110031 6.518402
_cons | 6.314217 .1041623 60.62 0.000 6.110031 6.518402
------------------------------------------------------------------------------
------------------------------------------------------------------------------
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000
. loc lab : di %-9.2f `=e(y1)'
. loc lab : di %-9.2f `=e(y1)'
. loc lab=strtrim("`lab'")
. loc lab=strtrim("`lab'")
. xteventplot, nonormlabel ylab(-3 0 `"0 (`lab')"' 3) name(g2) /* " */
. xteventplot, nonormlabel ylab(-3 0 `"0 (`lab')"' 3) name(g2) /* " */
option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon
option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon
> ding to the normalized coefficient won't be displayed
> ding to the normalized coefficient won't be displayed
. graph combine g1 g2
. graph combine g1 g2
. drop y2
. drop y2
.
.
. * Test if/in
. * Test if/in
. xtevent y eta if i<100, panelvar(i) timevar(t) policyvar(z) window(5) plot
. xtevent y eta if i<100, panelvar(i) timevar(t) policyvar(z) window(5) plot
No proxy or instruments provided. Implementing OLS estimator
No proxy or instruments provided. Implementing OLS estimator
Linear regression, absorbing indicators Number of obs = 891
Linear regression, absorbing indicators Number of obs = 891
Absorbed variable: i No. of categories = 99
Absorbed variable: i No. of categories = 99
F(21, 771) = 19.21
F(21, 771) = 19.21
Prob > F = 0.0000
Prob > F = 0.0000
R-squared = 0.7712
R-squared = 0.7712
Adj R-squared = 0.7359
Adj R-squared = 0.7359
Root MSE = 1.0356
Root MSE = 1.0356
------------------------------------------------------------------------------
------------------------------------------------------------------------------
y | Coefficient Std. err. t P>|t| [95% conf. interval]
y | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
-------------+----------------------------------------------------------------
_k_eq_m6 | -.2882097 .351599 -0.82 0.413 -.9784146 .4019952
_k_eq_m6 | -.2882097 .351599 -0.82 0.413 -.9784146 .4019952
_k_eq_m5 | -.6923773 .3927855 -1.76 0.078 -1.463433 .0786785
_k_eq_m5 | -.6923773 .3927855 -1.76 0.078 -1.463433 .0786785
_k_eq_m4 | -.0932655 .3525298 -0.26 0.791 -.7852976 .5987666
_k_eq_m4 | -.0932655 .3525298 -0.26 0.791 -.7852976 .5987666
_k_eq_m3 | -.068185 .3384769 -0.20 0.840 -.7326305 .5962605
_k_eq_m3 | -.068185 .3384769 -0.20 0.840 -.7326305 .5962605
_k_eq_m2 | -.3234206 .3406932 -0.95 0.343 -.992217 .3453757
_k_eq_m2 | -.3234206 .3406932 -0.95 0.343 -.992217 .3453757
_k_eq_p0 | .5722541 .3342813 1.71 0.087 -.0839554 1.228464
_k_eq_p0 | .5722541 .3342813 1.71 0.087 -.0839554 1.228464
_k_eq_p1 | .9961526 .3417043 2.92 0.004 .3253715 1.666934
_k_eq_p1 | .9961526 .3417043 2.92 0.004 .3253715 1.666934
_k_eq_p2 | .7954004 .3524217 2.26 0.024 .1035806 1.48722
_k_eq_p2 | .7954004 .3524217 2.26 0.024 .1035806 1.48722
_k_eq_p3 | .8880688 .3628256 2.45 0.015 .1758256 1.600312
_k_eq_p3 | .8880688 .3628256 2.45 0.015 .1758256 1.600312
_k_eq_p4 | 1.039313 .3719825 2.79 0.005 .3090946 1.769532
_k_eq_p4 | 1.039313 .3719825 2.79 0.005 .3090946 1.769532
Diferenças salvas
Texto original
Abrir arquivo
. . clear all . . /*========================================================================= > 1: Load data > ===========================================================================*/ . use "example31.dta", clear . . . /*========================================================================= > 2: Run tests > ===========================================================================*/ . . graph drop _all . . *------------------------ 2.1: Replicate 2a and test basic funcionality ---------------------------------- . . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . . * Testing xtset options . . xtevent y eta, policyvar(z) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xtevent y eta, policyvar(z) panelvar(i) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xtevent y eta, policyvar(z) timevar(t) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . . . /* Must fail > xtevent y eta, policyvar(z) panelvar(z) window(5) > xtevent y eta, policyvar(z) timevar(z) window(5) > */ . . * Testing noci, nosupt, nozeroline, nonormlabel . xtevent y eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, noci option noci has been specified. Confidence intervals won't be displayed . xteventplot, nosupt option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated . xteventplot, nozeroline option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, nonormlabel option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . . * Test combinations . xteventplot, noci nozeroline option noci has been specified. Confidence intervals won't be displayed option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, noci nonormlabel option noci has been specified. Confidence intervals won't be displayed option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . xteventplot, nosupt nozeroline option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, nosupt nonormlabel option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . . * A common axis plot with labels . gen y2 = y + 5 . xtevent y eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . loc lab : di %-9.2f `=e(y1)' . loc lab=strtrim("`lab'") . xteventplot, nonormlabel ylab(-3 0 `"0 (`lab')"' 3) name(g1) /* " */ option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . xtevent y2 eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y2 | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011971 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581162 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579538 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343268 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .2823779 .0446025 6.33 0.000 .1949453 .3698105 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251372 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 6.314217 .1041623 60.62 0.000 6.110031 6.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . loc lab : di %-9.2f `=e(y1)' . loc lab=strtrim("`lab'") . xteventplot, nonormlabel ylab(-3 0 `"0 (`lab')"' 3) name(g2) /* " */ option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . graph combine g1 g2 . drop y2 . . * Test if/in . xtevent y eta if i<100, panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 891 Absorbed variable: i No. of categories = 99 F(21, 771) = 19.21 Prob > F = 0.0000 R-squared = 0.7712 Adj R-squared = 0.7359 Root MSE = 1.0356 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.2882097 .351599 -0.82 0.413 -.9784146 .4019952 _k_eq_m5 | -.6923773 .3927855 -1.76 0.078 -1.463433 .0786785 _k_eq_m4 | -.0932655 .3525298 -0.26 0.791 -.7852976 .5987666 _k_eq_m3 | -.068185 .3384769 -0.20 0.840 -.7326305 .5962605 _k_eq_m2 | -.3234206 .3406932 -0.95 0.343 -.992217 .3453757 _k_eq_p0 | .5722541 .3342813 1.71 0.087 -.0839554 1.228464 _k_eq_p1 | .9961526 .3417043 2.92 0.004 .3253715 1.666934 _k_eq_p2 | .7954004 .3524217 2.26 0.024 .1035806 1.48722 _k_eq_p3 | .8880688 .3628256 2.45 0.015 .1758256 1.600312 _k_eq_p4 | 1.039313 .3719825 2.79 0.005 .3090946 1.769532 _k_eq_p5 | .7272531 .4206243 1.73 0.084 -.0984516 1.552958 _k_eq_p6 | 1.130298 .3799306 2.98 0.003 .3844768 1.876119 eta | .2931345 .0317117 9.24 0.000 .230883 .3553859 | t | 8 | .1353235 .1483005 0.91 0.362 -.1557973 .4264442 9 | .3299903 .1494705 2.21 0.028 .0365729 .6234077 10 | .6997617 .149972 4.67 0.000 .4053599 .9941635 11 | .7722895 .1521045 5.08 0.000 .4737015 1.070877 12 | .6634922 .1548708 4.28 0.000 .3594738 .9675106 13 | .9715054 .1587839 6.12 0.000 .6598053 1.283206 14 | 1.223305 .1617834 7.56 0.000 .9057173 1.540894 15 | 1.393352 .1650083 8.44 0.000 1.069433 1.71727 | _cons | 1.65819 .3280156 5.06 0.000 1.01428 2.3021 ------------------------------------------------------------------------------ F test of absorbed indicators: F(98, 771) = 9.741 Prob > F = 0.000 . xtevent y eta in 1/600 , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 270 Absorbed variable: i No. of categories = 30 F(21, 219) = 6.20 Prob > F = 0.0000 R-squared = 0.7716 Adj R-squared = 0.7195 Root MSE = 0.9710 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.8846858 .6146396 -1.44 0.151 -2.096051 .3266799 _k_eq_m5 | -1.511945 .7176761 -2.11 0.036 -2.926381 -.0975093 _k_eq_m4 | -1.125237 .5769534 -1.95 0.052 -2.262329 .0118543 _k_eq_m3 | -.8016579 .5797806 -1.38 0.168 -1.944322 .3410058 _k_eq_m2 | -.5515958 .5741756 -0.96 0.338 -1.683213 .5800212 _k_eq_p0 | -.9278853 .5968318 -1.55 0.121 -2.104154 .2483838 _k_eq_p1 | .3008111 .598337 0.50 0.616 -.8784247 1.480047 _k_eq_p2 | .2165589 .6245545 0.35 0.729 -1.014348 1.447465 _k_eq_p3 | .6288715 .634314 0.99 0.323 -.6212697 1.879013 _k_eq_p4 | -.5954431 .6327738 -0.94 0.348 -1.842549 .6516626 _k_eq_p5 | -.0583329 .8846871 -0.07 0.947 -1.801923 1.685257 _k_eq_p6 | -.08321 .7234002 -0.12 0.909 -1.508927 1.342507 eta | .3001024 .0668471 4.49 0.000 .1683564 .4318484 | t | 8 | -.020585 .2574219 -0.08 0.936 -.5279264 .4867563 9 | -.0221011 .2590484 -0.09 0.932 -.532648 .4884457 10 | .1382234 .256677 0.54 0.591 -.3676499 .6440967 11 | .5352765 .2607022 2.05 0.041 .0214702 1.049083 12 | .5164232 .2678668 1.93 0.055 -.0115036 1.04435 13 | .8705216 .270285 3.22 0.001 .3378289 1.403214 14 | 1.166826 .2800071 4.17 0.000 .6149729 1.71868 15 | 1.284314 .2797046 4.59 0.000 .7330568 1.835572 | _cons | 2.304379 .5746441 4.01 0.000 1.171839 3.43692 ------------------------------------------------------------------------------ F test of absorbed indicators: F(29, 219) = 8.771 Prob > F = 0.000 . xtevent y eta in 1/600 if i<30 , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 261 Absorbed variable: i No. of categories = 29 F(21, 211) = 5.76 Prob > F = 0.0000 R-squared = 0.7595 Adj R-squared = 0.7037 Root MSE = 0.9726 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.015216 .7168241 -1.42 0.158 -2.42827 .3978387 _k_eq_m5 | -1.658287 .8373915 -1.98 0.049 -3.309012 -.0075615 _k_eq_m4 | -1.105774 .635079 -1.74 0.083 -2.357686 .146139 _k_eq_m3 | -.7092365 .6437462 -1.10 0.272 -1.978234 .5597615 _k_eq_m2 | -.9643356 .6405377 -1.51 0.134 -2.227009 .2983375 _k_eq_p0 | -.9761085 .6218087 -1.57 0.118 -2.201862 .2496447 _k_eq_p1 | .1968436 .6253555 0.31 0.753 -1.035901 1.429589 _k_eq_p2 | .1358553 .6433918 0.21 0.833 -1.132444 1.404155 _k_eq_p3 | .6236733 .6539087 0.95 0.341 -.6653577 1.912704 _k_eq_p4 | -.6851148 .6587855 -1.04 0.300 -1.983759 .6135298 _k_eq_p5 | -.1484296 .8979531 -0.17 0.869 -1.918538 1.621679 _k_eq_p6 | -.1287198 .7422298 -0.17 0.862 -1.591856 1.334416 eta | .2986605 .0676582 4.41 0.000 .1652879 .4320331 | t | 8 | .0033689 .2638975 0.01 0.990 -.5168445 .5235823 9 | .0628873 .265822 0.24 0.813 -.4611199 .5868945 10 | .113526 .2624641 0.43 0.666 -.4038617 .6309137 11 | .5493061 .2653795 2.07 0.040 .0261712 1.072441 12 | .5769833 .2753272 2.10 0.037 .0342389 1.119728 13 | .9129786 .274476 3.33 0.001 .3719121 1.454045 14 | 1.10676 .2849671 3.88 0.000 .5450125 1.668507 15 | 1.334183 .2842621 4.69 0.000 .7738253 1.89454 | _cons | 2.34292 .6584314 3.56 0.000 1.044973 3.640866 ------------------------------------------------------------------------------ F test of absorbed indicators: F(28, 211) = 8.235 Prob > F = 0.000 . . * Test nofe, note . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) nofe plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(21, 8978) = 332.33 Model | 14084.5946 21 670.694983 Prob > F = 0.0000 Residual | 18119.0165 8,978 2.01815733 R-squared = 0.4374 -------------+---------------------------------- Adj R-squared = 0.4360 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.4206 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.1297411 .1091722 -1.19 0.235 -.3437436 .0842613 _k_eq_m5 | .0833995 .1541475 0.54 0.588 -.2187648 .3855639 _k_eq_m4 | -.0033477 .1524864 -0.02 0.982 -.3022558 .2955604 _k_eq_m3 | .1157061 .1496123 0.77 0.439 -.1775681 .4089803 _k_eq_m2 | .0059458 .1490692 0.04 0.968 -.2862638 .2981554 _k_eq_p0 | .9222068 .1468935 6.28 0.000 .6342621 1.210152 _k_eq_p1 | .8169586 .1463388 5.58 0.000 .5301012 1.103816 _k_eq_p2 | .9037735 .1477369 6.12 0.000 .6141754 1.193372 _k_eq_p3 | .8305188 .1507872 5.51 0.000 .5349414 1.126096 _k_eq_p4 | .8316027 .15478 5.37 0.000 .5281986 1.135007 _k_eq_p5 | 1.040814 .1621225 6.42 0.000 .7230164 1.358611 _k_eq_p6 | .8832319 .1303447 6.78 0.000 .6277265 1.138737 eta | .2627077 .0064284 40.87 0.000 .2501067 .2753088 | t | 8 | .2809535 .0635672 4.42 0.000 .1563473 .4055598 9 | .4581126 .0635997 7.20 0.000 .3334425 .5827826 10 | .6865414 .0636593 10.78 0.000 .5617546 .8113281 11 | .8333159 .0637644 13.07 0.000 .7083231 .9583087 12 | 1.006002 .0638871 15.75 0.000 .8807688 1.131235 13 | 1.245761 .0640764 19.44 0.000 1.120157 1.371365 14 | 1.396131 .0642816 21.72 0.000 1.270124 1.522137 15 | 1.629537 .0645114 25.26 0.000 1.50308 1.755994 | _cons | 1.489907 .1141005 13.06 0.000 1.266244 1.71357 ------------------------------------------------------------------------------ . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) nofe note plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(13, 8986) = 405.50 Model | 11906.8789 13 915.913763 Prob > F = 0.0000 Residual | 20296.7323 8,986 2.25870601 R-squared = 0.3697 -------------+---------------------------------- Adj R-squared = 0.3688 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.5029 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.1929318 .1154549 -1.67 0.095 -.4192498 .0333862 _k_eq_m5 | .0480947 .1630327 0.29 0.768 -.2714867 .367676 _k_eq_m4 | -.0535286 .1612917 -0.33 0.740 -.3696971 .2626399 _k_eq_m3 | .1070616 .1582432 0.68 0.499 -.2031312 .4172543 _k_eq_m2 | .025313 .1576667 0.16 0.872 -.2837496 .3343756 _k_eq_p0 | 1.007755 .1553343 6.49 0.000 .7032643 1.312246 _k_eq_p1 | .9254795 .1547496 5.98 0.000 .6221349 1.228824 _k_eq_p2 | 1.05248 .1561936 6.74 0.000 .7463053 1.358656 _k_eq_p3 | 1.021118 .1593501 6.41 0.000 .7087553 1.33348 _k_eq_p4 | 1.109095 .1634636 6.78 0.000 .7886695 1.429521 _k_eq_p5 | 1.415088 .1710464 8.27 0.000 1.079798 1.750378 _k_eq_p6 | 1.468944 .1364843 10.76 0.000 1.201403 1.736484 eta | .2389588 .0067566 35.37 0.000 .2257143 .2522033 _cons | 2.332124 .1121914 20.79 0.000 2.112203 2.552045 ------------------------------------------------------------------------------ . . * Test smoothest line . xtevent eta, panelvar(i) timevar(t) policyvar(z) window(4) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 11,000 Absorbed variable: i No. of categories = 1,000 F(20, 9980) = 145.18 Prob > F = 0.0000 R-squared = 0.8646 Adj R-squared = 0.8507 Root MSE = 1.2464 ------------------------------------------------------------------------------ eta | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | -2.828136 .1064315 -26.57 0.000 -3.036763 -2.619509 _k_eq_m4 | -1.677028 .1240764 -13.52 0.000 -1.920243 -1.433813 _k_eq_m3 | -1.336378 .1222929 -10.93 0.000 -1.576097 -1.096659 _k_eq_m2 | -.8921123 .1185683 -7.52 0.000 -1.12453 -.6596945 _k_eq_p0 | 1.458456 .1185385 12.30 0.000 1.226096 1.690815 _k_eq_p1 | 1.640089 .1193893 13.74 0.000 1.406062 1.874117 _k_eq_p2 | 1.818459 .1215983 14.95 0.000 1.580102 2.056816 _k_eq_p3 | 2.036383 .1257121 16.20 0.000 1.789962 2.282804 _k_eq_p4 | 2.11163 .1315385 16.05 0.000 1.853788 2.369472 _k_eq_p5 | 2.373969 .1132438 20.96 0.000 2.151988 2.59595 | t | 7 | -.069634 .0557916 -1.25 0.212 -.1789968 .0397288 8 | -.1508391 .0558944 -2.70 0.007 -.2604034 -.0412748 9 | -.2464859 .0560989 -4.39 0.000 -.3564511 -.1365207 10 | -.3086252 .0563966 -5.47 0.000 -.4191738 -.1980765 11 | -.4407218 .0567634 -7.76 0.000 -.5519896 -.3294541 12 | -.5387938 .0572022 -9.42 0.000 -.6509217 -.426666 13 | -.6787502 .0577788 -11.75 0.000 -.7920082 -.5654922 14 | -.7380675 .058395 -12.64 0.000 -.8525335 -.6236015 15 | -.7471374 .0590178 -12.66 0.000 -.8628243 -.6314506 16 | -.8863071 .0597648 -14.83 0.000 -1.003458 -.769156 | _cons | 2.388192 .1077882 22.16 0.000 2.176906 2.599479 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 9980) = 29.433 Prob > F = 0.000 . xteventplot, smpath(scatter) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 18.3070381 Order 0 Wald value 2888.84103 Order 1 Wald value 519.967356 Order 2 Wald value 133.928595 Order 3 Wald value 112.44878 Order 4 Wald value 102.223602 Order 5 Wald value 56.6864304 Order 6 Wald value 22.8128592 Order 7 Wald value 22.7419107 Order 8 Wald value 9.27938467 (setting technique to nr) Iteration 0: f(p) = 46164996 (not concave) Iteration 1: f(p) = 46109859 (not concave) Iteration 2: f(p) = 46102811 (not concave) Iteration 3: f(p) = 46102316 (not concave) Iteration 4: f(p) = 46092836 (not concave) (switching technique to bfgs) Iteration 5: f(p) = 46092567 Iteration 6: f(p) = 46092566 Iteration 7: f(p) = 46092565 Iteration 8: f(p) = 46092565 Iteration 9: f(p) = 46092562 (switching technique to nr) Iteration 10: f(p) = 46092545 Iteration 11: f(p) = 46091975 (not concave) Iteration 12: f(p) = 46023841 (not concave) Iteration 13: f(p) = 46021814 (not concave) Iteration 14: f(p) = 46021637 (not concave) (switching technique to bfgs) Iteration 15: f(p) = 46021616 Iteration 16: f(p) = 46021616 Iteration 17: f(p) = 46021614 Iteration 18: f(p) = 46021613 Iteration 19: f(p) = 46021536 (switching technique to nr) Iteration 20: f(p) = 46021421 Hessian is not positive semidefinite (setting technique to nr) Iteration 0: f(p) = 46175610 (not concave) Iteration 1: f(p) = 46102071 (not concave) Iteration 2: f(p) = 46097347 (not concave) Iteration 3: f(p) = 46097077 (not concave) Iteration 4: f(p) = 46097013 (not concave) (switching technique to bfgs) BFGS stepping has contracted, resetting BFGS Hessian Iteration 5: f(p) = 46097002 BFGS stepping has contracted, resetting BFGS Hessian Iteration 6: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 7: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 8: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 9: f(p) = 46097002 (backed up) (switching technique to nr) Hessian is not positive semidefinite The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 4. See mf_optimize##r_error to see what that means. Error code = 4. See mf_optimize##r_error to see what that means. . xteventplot, smpath(line) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 18.3070381 Order 0 Wald value 2888.84103 Order 1 Wald value 519.967356 Order 2 Wald value 133.928595 Order 3 Wald value 112.44878 Order 4 Wald value 102.223602 Order 5 Wald value 56.6864304 Order 6 Wald value 22.8128592 Order 7 Wald value 22.7419107 Order 8 Wald value 9.27938467 (setting technique to nr) Iteration 0: f(p) = 46164996 (not concave) Iteration 1: f(p) = 46109859 (not concave) Iteration 2: f(p) = 46102811 (not concave) Iteration 3: f(p) = 46102316 (not concave) Iteration 4: f(p) = 46092836 (not concave) (switching technique to bfgs) Iteration 5: f(p) = 46092567 Iteration 6: f(p) = 46092566 Iteration 7: f(p) = 46092565 Iteration 8: f(p) = 46092565 Iteration 9: f(p) = 46092562 (switching technique to nr) Iteration 10: f(p) = 46092545 Iteration 11: f(p) = 46091975 (not concave) Iteration 12: f(p) = 46023841 (not concave) Iteration 13: f(p) = 46021814 (not concave) Iteration 14: f(p) = 46021637 (not concave) (switching technique to bfgs) Iteration 15: f(p) = 46021616 Iteration 16: f(p) = 46021616 Iteration 17: f(p) = 46021614 Iteration 18: f(p) = 46021613 Iteration 19: f(p) = 46021536 (switching technique to nr) Iteration 20: f(p) = 46021421 Hessian is not positive semidefinite (setting technique to nr) Iteration 0: f(p) = 46175610 (not concave) Iteration 1: f(p) = 46102071 (not concave) Iteration 2: f(p) = 46097347 (not concave) Iteration 3: f(p) = 46097077 (not concave) Iteration 4: f(p) = 46097013 (not concave) (switching technique to bfgs) BFGS stepping has contracted, resetting BFGS Hessian Iteration 5: f(p) = 46097002 BFGS stepping has contracted, resetting BFGS Hessian Iteration 6: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 7: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 8: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 9: f(p) = 46097002 (backed up) (switching technique to nr) Hessian is not positive semidefinite The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 4. See mf_optimize##r_error to see what that means. Error code = 4. See mf_optimize##r_error to see what that means. . xteventplot, smpath(line, technique("nr 10 bfgs 10")) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 18.3070381 Order 0 Wald value 2888.84103 Order 1 Wald value 519.967356 Order 2 Wald value 133.928595 Order 3 Wald value 112.44878 Order 4 Wald value 102.223602 Order 5 Wald value 56.6864304 Order 6 Wald value 22.8128592 Order 7 Wald value 22.7419107 Order 8 Wald value 9.27938467 (setting technique to nr) Iteration 0: f(p) = 46164996 (not concave) Iteration 1: f(p) = 46109859 (not concave) Iteration 2: f(p) = 46102811 (not concave) Iteration 3: f(p) = 46102316 (not concave) Iteration 4: f(p) = 46092836 (not concave) Iteration 5: f(p) = 46092567 (not concave) Iteration 6: f(p) = 45994866 (not concave) Iteration 7: f(p) = 45898041 (not concave) Iteration 8: f(p) = 45896408 (not concave) Iteration 9: f(p) = 45881715 (not concave) (switching technique to bfgs) Iteration 10: f(p) = 45880998 Iteration 11: f(p) = 45880929 Iteration 12: f(p) = 45868963 Iteration 13: f(p) = 45863305 Iteration 14: f(p) = 45862989 (backed up) Iteration 15: f(p) = 45862989 (backed up) Iteration 16: f(p) = 45862989 (backed up) Iteration 17: f(p) = 45862960 Iteration 18: f(p) = 45862959 (backed up) Iteration 19: f(p) = 45858646 (switching technique to nr) Iteration 20: f(p) = 45858577 (not concave) Iteration 21: f(p) = 45857638 (not concave) Iteration 22: f(p) = 45857570 (not concave) Iteration 23: f(p) = 45855841 (not concave) Iteration 24: f(p) = 45855821 (not concave) Iteration 25: f(p) = 45855444 (not concave) Iteration 26: f(p) = 45855149 (not concave) Iteration 27: f(p) = 45663340 (not concave) Iteration 28: f(p) = 45654588 (not concave) Iteration 29: f(p) = 45653253 (not concave) (switching technique to bfgs) Iteration 30: f(p) = 45653209 Iteration 31: f(p) = 45653131 BFGS stepping has contracted, resetting BFGS Hessian Iteration 32: f(p) = 45649348 Iteration 33: f(p) = 45649291 (backed up) Iteration 34: f(p) = 45645823 (backed up) Iteration 35: f(p) = 45645218 (backed up) Iteration 36: f(p) = 45606313 (backed up) Iteration 37: f(p) = 45601956 (backed up) Iteration 38: f(p) = 45600241 (backed up) Iteration 39: f(p) = 45600185 (backed up) (switching technique to nr) Iteration 40: f(p) = 45600169 (backed up) Hessian is not positive semidefinite (setting technique to nr) Iteration 0: f(p) = 46175610 (not concave) Iteration 1: f(p) = 46102071 (not concave) Iteration 2: f(p) = 46097347 (not concave) Iteration 3: f(p) = 46097077 (not concave) Iteration 4: f(p) = 46097013 (not concave) Hessian is not positive semidefinite The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 4. See mf_optimize##r_error to see what that means. Error code = 4. See mf_optimize##r_error to see what that means. . . * Test more suptreps . . cap graph drop g1 . cap graph drop g2 . . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(21, 11979) = 572.74 Prob > F = 0.0000 R-squared = 0.7653 Adj R-squared = 0.7453 Root MSE = 1.0058 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | .1354244 .0756957 1.79 0.074 -.0129515 .2838003 _k_eq_m3 | .1927795 .0902369 2.14 0.033 .0159005 .3696585 _k_eq_m2 | .1540638 .0894043 1.72 0.085 -.0211831 .3293106 _k_eq_p0 | 1.068977 .0892098 11.98 0.000 .8941116 1.243843 _k_eq_p1 | 1.006862 .0907016 11.10 0.000 .8290722 1.184652 _k_eq_p2 | 1.062882 .0922647 11.52 0.000 .8820284 1.243736 _k_eq_p3 | 1.031628 .0947797 10.88 0.000 .8458445 1.217412 _k_eq_p4 | 1.056418 .0782796 13.50 0.000 .9029772 1.209858 eta | .2593535 .0068421 37.91 0.000 .2459418 .2727651 | t | 6 | .1795681 .0450092 3.99 0.000 .0913429 .2677934 7 | .347742 .0450596 7.72 0.000 .2594178 .4360661 8 | .630268 .0451644 13.95 0.000 .5417385 .7187975 9 | .8095375 .0453086 17.87 0.000 .7207253 .8983497 10 | 1.040501 .0454959 22.87 0.000 .9513215 1.12968 11 | 1.187814 .0457683 25.95 0.000 1.098101 1.277527 12 | 1.362563 .0460682 29.58 0.000 1.272262 1.452864 13 | 1.605032 .0464086 34.58 0.000 1.514063 1.696 14 | 1.75353 .0467701 37.49 0.000 1.661854 1.845207 15 | 1.989215 .0471243 42.21 0.000 1.896844 2.081587 16 | 2.211903 .0475437 46.52 0.000 2.11871 2.305097 17 | 2.415992 .0479468 50.39 0.000 2.322008 2.509975 | _cons | .9034138 .0791741 11.41 0.000 .7482197 1.058608 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11979) = 14.229 Prob > F = 0.000 . xteventplot, suptreps(20) name(g1) . xteventplot, suptreps(1e6) name(g2) . . graph combine g1 g2, rows(1) . . graph drop g1 . graph drop g2 . . * Test savek . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) savek(a) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . des a_eq*, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_eq_m6 double %10.0g Event time <= - 6 a_eq_m5 double %10.0g Event-time = - 5 a_eq_m4 double %10.0g Event-time = - 4 a_eq_m3 double %10.0g Event-time = - 3 a_eq_m2 double %10.0g Event-time = - 2 a_eq_m1 double %10.0g Event-time = - 1 a_eq_p0 double %10.0g Event-time = + 0 a_eq_p1 double %10.0g Event-time = + 1 a_eq_p2 double %10.0g Event-time = + 2 a_eq_p3 double %10.0g Event-time = + 3 a_eq_p4 double %10.0g Event-time = + 4 a_eq_p5 double %10.0g Event-time = + 5 a_eq_p6 double %10.0g Event time >= + 6 . des a_evtime, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_evtime long %12.0g . drop a* . . * Test savek with suboption noestimate . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) savek(a, noe) No proxy or instruments provided. Implementing OLS estimator . des a_eq*, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_eq_m6 double %10.0g Event time <= - 6 a_eq_m5 double %10.0g Event-time = - 5 a_eq_m4 double %10.0g Event-time = - 4 a_eq_m3 double %10.0g Event-time = - 3 a_eq_m2 double %10.0g Event-time = - 2 a_eq_m1 double %10.0g Event-time = - 1 a_eq_p0 double %10.0g Event-time = + 0 a_eq_p1 double %10.0g Event-time = + 1 a_eq_p2 double %10.0g Event-time = + 2 a_eq_p3 double %10.0g Event-time = + 3 a_eq_p4 double %10.0g Event-time = + 4 a_eq_p5 double %10.0g Event-time = + 5 a_eq_p6 double %10.0g Event time >= + 6 . des a_evtime, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_evtime long %12.0g . drop a* . . * Test different prefix . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) savek(b) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . . *savek + suboption replace . cap noi xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) savek(b) No proxy or instruments provided. Implementing OLS estimator You specified to save the event-time dummy variables using the prefix b, but you already have event-time dummy v > ariables saved with that prefix. Use the replace suboption to replace the existing variables. . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) savek(b, replace) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . . * Test factor variables in varlist . cap gen pois=rpoisson(5) . xtevent y eta i.pois, panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(36, 7964) = 122.65 Prob > F = 0.0000 R-squared = 0.7549 Adj R-squared = 0.7230 Root MSE = 0.9955 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0684325 .1106066 0.62 0.536 -.1483854 .2852504 _k_eq_m5 | .1619076 .117986 1.37 0.170 -.0693759 .3931911 _k_eq_m4 | .1036874 .1132398 0.92 0.360 -.1182922 .3256671 _k_eq_m3 | .150929 .1086349 1.39 0.165 -.0620238 .3638817 _k_eq_m2 | .0497182 .1060713 0.47 0.639 -.1582094 .2576458 _k_eq_p0 | .9837076 .104778 9.39 0.000 .7783153 1.1891 _k_eq_p1 | .8959227 .1059838 8.45 0.000 .6881668 1.103679 _k_eq_p2 | .9943708 .1092482 9.10 0.000 .7802156 1.208526 _k_eq_p3 | .960034 .1140884 8.41 0.000 .7363908 1.183677 _k_eq_p4 | .9932338 .1190091 8.35 0.000 .7599448 1.226523 _k_eq_p5 | 1.176184 .1270594 9.26 0.000 .9271143 1.425254 _k_eq_p6 | 1.074022 .1184027 9.07 0.000 .8419222 1.306123 eta | .2618684 .0096903 27.02 0.000 .2428729 .2808639 | pois | 1 | -.0050785 .1508185 -0.03 0.973 -.3007223 .2905653 2 | -.0796745 .1435452 -0.56 0.579 -.3610607 .2017117 3 | -.015019 .1416495 -0.11 0.916 -.292689 .262651 4 | -.0134892 .1410335 -0.10 0.924 -.2899519 .2629734 5 | -.0049872 .1408898 -0.04 0.972 -.2811682 .2711938 6 | -.0426334 .1414661 -0.30 0.763 -.319944 .2346772 7 | .038025 .1424243 0.27 0.789 -.2411639 .3172138 8 | -.0666469 .145175 -0.46 0.646 -.3512278 .2179341 9 | .0654559 .1487902 0.44 0.660 -.2262118 .3571236 10 | -.0841903 .1592301 -0.53 0.597 -.3963231 .2279425 11 | -.0362632 .1813971 -0.20 0.842 -.3918491 .3193227 12 | .0084018 .2378747 0.04 0.972 -.4578949 .4746986 13 | -.2795585 .3477853 -0.80 0.422 -.9613087 .4021917 14 | -.3511645 .4226884 -0.83 0.406 -1.179744 .4774155 17 | 1.241816 1.066411 1.16 0.244 -.8486278 3.332261 | t | 8 | .2852713 .0446565 6.39 0.000 .1977329 .3728097 9 | .4610974 .0448673 10.28 0.000 .3731458 .549049 10 | .6887783 .0452109 15.23 0.000 .6001532 .7774034 11 | .8360077 .0457173 18.29 0.000 .7463898 .9256256 12 | 1.007553 .0464703 21.68 0.000 .9164586 1.098647 13 | 1.247701 .047326 26.36 0.000 1.15493 1.340473 14 | 1.396277 .0482207 28.96 0.000 1.301752 1.490802 15 | 1.630428 .0491911 33.14 0.000 1.534 1.726855 | _cons | 1.333146 .171978 7.75 0.000 .9960243 1.670268 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7964) = 10.294 Prob > F = 0.000 . cap drop pois . . * Test time series variables in varlist . . xtevent y l.eta , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 178.89 Prob > F = 0.0000 R-squared = 0.7410 Adj R-squared = 0.7079 Root MSE = 1.0225 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.295481 .1123046 -2.63 0.009 -.5156274 -.0753346 _k_eq_m5 | -.1011935 .1204667 -0.84 0.401 -.3373397 .1349526 _k_eq_m4 | -.1227952 .1157456 -1.06 0.289 -.3496867 .1040964 _k_eq_m3 | -.0412724 .1110857 -0.37 0.710 -.2590294 .1764846 _k_eq_m2 | -.0716846 .1086905 -0.66 0.510 -.2847463 .1413772 _k_eq_p0 | 1.245506 .1067054 11.67 0.000 1.036335 1.454676 _k_eq_p1 | .9291682 .1103296 8.42 0.000 .7128933 1.145443 _k_eq_p2 | 1.052904 .1137475 9.26 0.000 .8299293 1.275879 _k_eq_p3 | 1.045492 .1186774 8.81 0.000 .8128533 1.278131 _k_eq_p4 | 1.036239 .1241623 8.35 0.000 .792848 1.279629 _k_eq_p5 | 1.279284 .1321163 9.68 0.000 1.020302 1.538267 _k_eq_p6 | 1.16413 .1236861 9.41 0.000 .9216726 1.406587 | eta | L1. | .1672026 .0100676 16.61 0.000 .1474675 .1869378 | t | 8 | .2726674 .0458129 5.95 0.000 .1828621 .3624727 9 | .4416902 .0460325 9.60 0.000 .3514544 .531926 10 | .671576 .0464139 14.47 0.000 .5805927 .7625594 11 | .7940153 .0469168 16.92 0.000 .7020461 .8859845 12 | .9630645 .0476763 20.20 0.000 .8696065 1.056523 13 | 1.183873 .0485588 24.38 0.000 1.088685 1.279061 14 | 1.341169 .0495968 27.04 0.000 1.243947 1.438392 15 | 1.58076 .0506567 31.21 0.000 1.48146 1.68006 | _cons | 1.626315 .106004 15.34 0.000 1.41852 1.834111 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 9.944 Prob > F = 0.000 . xtevent y f.eta , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 178.44 Prob > F = 0.0000 R-squared = 0.7408 Adj R-squared = 0.7076 Root MSE = 1.0229 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.0291091 .1170249 -0.25 0.804 -.2585086 .2002903 _k_eq_m5 | .1327799 .1233004 1.08 0.282 -.108921 .3744808 _k_eq_m4 | .0979751 .1181573 0.83 0.407 -.1336441 .3295943 _k_eq_m3 | .1760395 .1130351 1.56 0.119 -.0455389 .3976179 _k_eq_m2 | .0806906 .109562 0.74 0.461 -.1340795 .2954607 _k_eq_p0 | 1.375972 .1063506 12.94 0.000 1.167497 1.584447 _k_eq_p1 | 1.301705 .1075082 12.11 0.000 1.090961 1.512449 _k_eq_p2 | 1.405924 .110716 12.70 0.000 1.188891 1.622956 _k_eq_p3 | 1.413712 .1154489 12.25 0.000 1.187402 1.640022 _k_eq_p4 | 1.425507 .1206614 11.81 0.000 1.188979 1.662035 _k_eq_p5 | 1.675223 .1285539 13.03 0.000 1.423224 1.927222 _k_eq_p6 | 1.5633 .119404 13.09 0.000 1.329237 1.797363 | eta | F1. | .1620502 .0098784 16.40 0.000 .1426859 .1814145 | t | 8 | .2736588 .0458329 5.97 0.000 .1838144 .3635033 9 | .4357338 .0460393 9.46 0.000 .3454848 .5259828 10 | .6693344 .0464266 14.42 0.000 .5783261 .7603428 11 | .7960018 .0469484 16.95 0.000 .7039707 .888033 12 | .96308 .047702 20.19 0.000 .8695715 1.056588 13 | 1.174796 .0485207 24.21 0.000 1.079683 1.26991 14 | 1.31004 .0493754 26.53 0.000 1.213251 1.406829 15 | 1.56065 .0505072 30.90 0.000 1.461643 1.659657 | _cons | 1.360062 .1101458 12.35 0.000 1.144147 1.575976 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 9.869 Prob > F = 0.000 . . * Test asymmetric window . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(-4 2) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(21, 11979) = 572.89 Prob > F = 0.0000 R-squared = 0.7583 Adj R-squared = 0.7377 Root MSE = 1.0034 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | .0795708 .078053 1.02 0.308 -.0734257 .2325673 _k_eq_m4 | .1413931 .0912102 1.55 0.121 -.0373937 .3201799 _k_eq_m3 | .1477981 .090233 1.64 0.101 -.0290733 .3246695 _k_eq_m2 | .1211895 .0886144 1.37 0.171 -.0525091 .2948881 _k_eq_p0 | 1.041602 .0902504 11.54 0.000 .8646964 1.218507 _k_eq_p1 | .9703133 .0916955 10.58 0.000 .7905752 1.150051 _k_eq_p2 | 1.044302 .0940255 11.11 0.000 .8599964 1.228607 _k_eq_p3 | 1.01891 .0768084 13.27 0.000 .868353 1.169467 eta | .258618 .0069438 37.24 0.000 .2450071 .272229 | t | 5 | .2244 .0449018 5.00 0.000 .1363851 .3124148 6 | .4031304 .0449613 8.97 0.000 .3149989 .4912619 7 | .5703228 .0450673 12.65 0.000 .4819836 .6586619 8 | .8526885 .0452145 18.86 0.000 .7640609 .9413162 9 | 1.031194 .0454225 22.70 0.000 .9421584 1.120229 10 | 1.261744 .0456657 27.63 0.000 1.172232 1.351256 11 | 1.408927 .0459908 30.63 0.000 1.318778 1.499077 12 | 1.583585 .0463148 34.19 0.000 1.492801 1.67437 13 | 1.825345 .0467484 39.05 0.000 1.73371 1.916979 14 | 1.973966 .0471473 41.87 0.000 1.88155 2.066382 15 | 2.209954 .0474623 46.56 0.000 2.116921 2.302988 16 | 2.431698 .0479853 50.68 0.000 2.337639 2.525757 | _cons | .7311287 .0815665 8.96 0.000 .5712452 .8910122 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11979) = 14.328 Prob > F = 0.000 . . * Test finding and estimating with the widest window . xtevent y eta , panelvar(i) timevar(t) policyvar(z) impute(stag) window(max) plot No proxy or instruments provided. Implementing OLS estimator The calculated window by window(max) is (-18,16), plus the endpoints -19 and 17. Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(56, 18944) = 702.23 Prob > F = 0.0000 R-squared = 0.8023 Adj R-squared = 0.7913 Root MSE = 1.0022 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m19 | .6423926 .2608484 2.46 0.014 .1311064 1.153679 _k_eq_m18 | -.1775268 .2104908 -0.84 0.399 -.5901075 .2350538 _k_eq_m17 | .1263326 .1698441 0.74 0.457 -.206577 .4592422 _k_eq_m16 | .0380571 .1450188 0.26 0.793 -.2461928 .3223069 _k_eq_m15 | .005294 .1337594 0.04 0.968 -.2568864 .2674743 _k_eq_m14 | -.1028837 .1236077 -0.83 0.405 -.3451658 .1393984 _k_eq_m13 | -.1811439 .1143673 -1.58 0.113 -.405314 .0430262 _k_eq_m12 | .1848555 .1070519 1.73 0.084 -.0249757 .3946868 _k_eq_m11 | .0700347 .1022051 0.69 0.493 -.1302964 .2703658 _k_eq_m10 | .1192835 .0973245 1.23 0.220 -.0714811 .3100481 _k_eq_m9 | -.1123919 .0934684 -1.20 0.229 -.2955984 .0708146 _k_eq_m8 | -.0008947 .0905761 -0.01 0.992 -.1784318 .1766425 _k_eq_m7 | .0825609 .0871064 0.95 0.343 -.0881755 .2532973 _k_eq_m6 | .1123127 .0850227 1.32 0.187 -.0543394 .2789648 _k_eq_m5 | .1134179 .082994 1.37 0.172 -.0492577 .2760935 _k_eq_m4 | .1225368 .0815805 1.50 0.133 -.0373683 .2824418 _k_eq_m3 | .1437796 .0806316 1.78 0.075 -.0142655 .3018246 _k_eq_m2 | .0626728 .0801585 0.78 0.434 -.094445 .2197905 _k_eq_p0 | 1.030078 .0803795 12.82 0.000 .872527 1.187629 _k_eq_p1 | .9553605 .081658 11.70 0.000 .7953035 1.115418 _k_eq_p2 | 1.046724 .0825916 12.67 0.000 .8848376 1.208611 _k_eq_p3 | 1.036179 .084252 12.30 0.000 .8710377 1.20132 _k_eq_p4 | 1.00154 .0863377 11.60 0.000 .8323109 1.17077 _k_eq_p5 | 1.153019 .0880671 13.09 0.000 .9803992 1.325638 _k_eq_p6 | 1.000366 .0902809 11.08 0.000 .8234072 1.177324 _k_eq_p7 | 1.030018 .0935097 11.02 0.000 .8467308 1.213306 _k_eq_p8 | .97777 .0975634 10.02 0.000 .7865371 1.169003 _k_eq_p9 | 1.035819 .1016011 10.19 0.000 .8366717 1.234966 _k_eq_p10 | 1.111073 .1076606 10.32 0.000 .9000485 1.322097 _k_eq_p11 | .9799806 .1153 8.50 0.000 .7539823 1.205979 _k_eq_p12 | 1.16532 .1240796 9.39 0.000 .9221132 1.408527 _k_eq_p13 | .8056877 .143361 5.62 0.000 .5246875 1.086688 _k_eq_p14 | 1.129944 .1649623 6.85 0.000 .8066028 1.453284 _k_eq_p15 | .7956263 .2124408 3.75 0.000 .3792235 1.212029 _k_eq_p16 | .7021863 .3051937 2.30 0.021 .1039793 1.300393 _k_eq_p17 | 1.457152 .5985379 2.43 0.015 .2839648 2.63034 eta | .2519384 .0047391 53.16 0.000 .2426494 .2612275 | t | 2 | .1434719 .0450851 3.18 0.001 .0551011 .2318427 3 | .3312757 .0451509 7.34 0.000 .2427759 .4197754 4 | .5528668 .0452825 12.21 0.000 .464109 .6416247 5 | .7741836 .0454452 17.04 0.000 .6851069 .8632602 6 | .9513304 .0455863 20.87 0.000 .8619772 1.040684 7 | 1.116552 .0457312 24.42 0.000 1.026915 1.206189 8 | 1.394627 .0458923 30.39 0.000 1.304674 1.48458 9 | 1.574857 .0460787 34.18 0.000 1.484539 1.665176 10 | 1.803088 .0462321 39.00 0.000 1.712469 1.893707 11 | 1.950842 .046446 42.00 0.000 1.859804 2.041881 12 | 2.123341 .0466535 45.51 0.000 2.031896 2.214786 13 | 2.361859 .046878 50.38 0.000 2.269974 2.453744 14 | 2.511809 .0470803 53.35 0.000 2.419527 2.604091 15 | 2.747289 .0472441 58.15 0.000 2.654686 2.839891 16 | 2.968836 .0475149 62.48 0.000 2.875702 3.06197 17 | 3.174446 .0477045 66.54 0.000 3.080941 3.267952 18 | 3.336821 .0479173 69.64 0.000 3.242898 3.430743 19 | 3.544168 .0481713 73.57 0.000 3.449748 3.638588 20 | 3.743031 .0486024 77.01 0.000 3.647766 3.838296 | _cons | -.1941443 .1921508 -1.01 0.312 -.570777 .1824883 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18944) = 21.600 Prob > F = 0.000 . . * Test finding and estimating with the widest window with balanced time periods for all units . * expect an error message because balanced window is too narrow . cap noi xtevent y eta , panelvar(i) timevar(t) policyvar(z) impute(stag) window(balanced) plot No proxy or instruments provided. Implementing OLS estimator The calculated window by window(balanced) is (-1,-1), plus the endpoints -2 and 0. Left window can not be positive and right window can not be negative. Check for first-treated units and last-treated units. Both types of units might have few common periods around t > reatment time which causes a narrow calculated window. . . * Test normalizations . . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(-1) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(-2) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0189149 .1043314 0.18 0.856 -.185602 .2234318 _k_eq_m5 | .1147788 .1144395 1.00 0.316 -.1095526 .3391102 _k_eq_m4 | .0508217 .1106011 0.46 0.646 -.1659853 .2676286 _k_eq_m3 | .0994637 .106911 0.93 0.352 -.1101097 .3090372 _k_eq_m1 | -.0503755 .105976 -0.48 0.635 -.2581161 .1573651 _k_eq_p0 | .9388562 .1090921 8.61 0.000 .7250071 1.152705 _k_eq_p1 | .8517438 .1111767 7.66 0.000 .6338085 1.069679 _k_eq_p2 | .9474805 .1152216 8.22 0.000 .7216161 1.173345 _k_eq_p3 | .9116492 .1206376 7.56 0.000 .675168 1.14813 _k_eq_p4 | .9407891 .1258371 7.48 0.000 .6941154 1.187463 _k_eq_p5 | 1.132847 .1341742 8.44 0.000 .8698303 1.395863 _k_eq_p6 | 1.022421 .1268115 8.06 0.000 .7738374 1.271005 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.364592 .099556 13.71 0.000 1.169436 1.559748 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(-6) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | .0958639 .0938989 1.02 0.307 -.0882025 .2799303 _k_eq_m4 | .0319068 .0972686 0.33 0.743 -.1587651 .2225786 _k_eq_m3 | .0805489 .0992278 0.81 0.417 -.1139635 .2750612 _k_eq_m2 | -.0189149 .1043314 -0.18 0.856 -.2234318 .185602 _k_eq_m1 | -.0692904 .1104722 -0.63 0.531 -.2858448 .147264 _k_eq_p0 | .9199414 .1188439 7.74 0.000 .6869762 1.152907 _k_eq_p1 | .8328289 .1233777 6.75 0.000 .5909764 1.074681 _k_eq_p2 | .9285656 .1294566 7.17 0.000 .6747968 1.182334 _k_eq_p3 | .8927344 .1362394 6.55 0.000 .6256695 1.159799 _k_eq_p4 | .9218742 .1418843 6.50 0.000 .6437438 1.200005 _k_eq_p5 | 1.113932 .1505378 7.40 0.000 .8188384 1.409025 _k_eq_p6 | 1.003506 .145634 6.89 0.000 .7180256 1.288987 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.383507 .0346139 39.97 0.000 1.315655 1.451359 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . * Should fail . * xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(-7) plot . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(1) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.8328289 .1233777 -6.75 0.000 -1.074681 -.5909764 _k_eq_m5 | -.736965 .1271325 -5.80 0.000 -.986178 -.4877521 _k_eq_m4 | -.8009222 .1213221 -6.60 0.000 -1.038745 -.563099 _k_eq_m3 | -.7522801 .1154607 -6.52 0.000 -.9786132 -.525947 _k_eq_m2 | -.8517438 .1111767 -7.66 0.000 -1.069679 -.6338085 _k_eq_m1 | -.9021193 .1058732 -8.52 0.000 -1.109658 -.6945801 _k_eq_p0 | .0871124 .1026674 0.85 0.396 -.1141426 .2883674 _k_eq_p2 | .0957367 .1031843 0.93 0.354 -.1065316 .298005 _k_eq_p3 | .0599054 .1067417 0.56 0.575 -.1493363 .2691471 _k_eq_p4 | .0890452 .1110392 0.80 0.423 -.1286206 .3067111 _k_eq_p5 | .2811028 .1181413 2.38 0.017 .0495151 .5126906 _k_eq_p6 | .1706773 .105891 1.61 0.107 -.0368968 .3782514 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 2.216336 .1162453 19.07 0.000 1.988465 2.444207 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.113932 .1505378 -7.40 0.000 -1.409025 -.8188384 _k_eq_m5 | -1.018068 .1518899 -6.70 0.000 -1.315812 -.720324 _k_eq_m4 | -1.082025 .1462731 -7.40 0.000 -1.368759 -.7952915 _k_eq_m3 | -1.033383 .1396579 -7.40 0.000 -1.307149 -.7596169 _k_eq_m2 | -1.132847 .1341742 -8.44 0.000 -1.395863 -.8698303 _k_eq_m1 | -1.183222 .1269706 -9.32 0.000 -1.432118 -.9343267 _k_eq_p0 | -.1939904 .1215288 -1.60 0.110 -.4322186 .0442377 _k_eq_p1 | -.2811028 .1181413 -2.38 0.017 -.5126906 -.0495151 _k_eq_p2 | -.1853662 .1165692 -1.59 0.112 -.4138722 .0431399 _k_eq_p3 | -.2211974 .1166876 -1.90 0.058 -.4499356 .0075408 _k_eq_p4 | -.1920576 .1182786 -1.62 0.104 -.4239146 .0397994 _k_eq_p6 | -.1104255 .1049386 -1.05 0.293 -.3161327 .0952816 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 2.497439 .1439853 17.35 0.000 2.21519 2.779688 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . * Should fail . * xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(7) plot . graph drop _all . . * Test exclusion of unbalanced units with ambiguous eventtime . . gen z2 = z . replace z2 = . if i==1 & t==7 (1 real change made, 1 to missing) . xtevent y eta, policyvar(z2) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Unit 1 not used because of ambiguous event-time due to missing values in policyvar. Linear regression, absorbing indicators Number of obs = 8,991 Absorbed variable: i No. of categories = 999 F(21, 7971) = 209.76 Prob > F = 0.0000 R-squared = 0.7546 Adj R-squared = 0.7233 Root MSE = 0.9952 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0703755 .1104496 0.64 0.524 -.1461346 .2868856 _k_eq_m5 | .1660506 .1178638 1.41 0.159 -.0649932 .3970944 _k_eq_m4 | .1017686 .113111 0.90 0.368 -.1199585 .3234957 _k_eq_m3 | .1504824 .1084974 1.39 0.165 -.0622008 .3631656 _k_eq_m2 | .0508257 .1059484 0.48 0.631 -.1568609 .2585123 _k_eq_p0 | .9954945 .1046747 9.51 0.000 .7903047 1.200684 _k_eq_p1 | .8901281 .1059488 8.40 0.000 .6824407 1.097816 _k_eq_p2 | 1.004424 .1092764 9.19 0.000 .7902139 1.218635 _k_eq_p3 | .9586975 .1141535 8.40 0.000 .7349268 1.182468 _k_eq_p4 | .9871542 .1191155 8.29 0.000 .7536566 1.220652 _k_eq_p5 | 1.18813 .1271836 9.34 0.000 .938817 1.437443 _k_eq_p6 | 1.071289 .1185294 9.04 0.000 .8389405 1.303638 eta | .2620157 .0096815 27.06 0.000 .2430375 .2809939 | t | 8 | .2788584 .0446138 6.25 0.000 .1914038 .3663131 9 | .4606976 .0448258 10.28 0.000 .3728273 .5485679 10 | .6877051 .0451738 15.22 0.000 .5991526 .7762575 11 | .8338794 .0457029 18.25 0.000 .7442898 .9234691 12 | 1.007937 .0464077 21.72 0.000 .9169652 1.098908 13 | 1.24709 .0472948 26.37 0.000 1.15438 1.3398 14 | 1.395681 .0481892 28.96 0.000 1.301218 1.490145 15 | 1.626921 .049143 33.11 0.000 1.530588 1.723254 | _cons | 1.314887 .1041868 12.62 0.000 1.110654 1.519121 ------------------------------------------------------------------------------ F test of absorbed indicators: F(998, 7971) = 10.332 Prob > F = 0.000 . drop z2 . . * Test reghdfe . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(3) reghdfe plot No proxy or instruments provided. Implementing OLS estimator (MWFE estimator converged in 2 iterations) HDFE Linear regression Number of obs = 13,000 Absorbing 2 HDFE groups F( 9, 11979) = 341.82 Prob > F = 0.0000 R-squared = 0.7653 Adj R-squared = 0.7453 Within R-sq. = 0.2043 Root MSE = 1.0058 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | .1354244 .0756957 1.79 0.074 -.0129515 .2838003 _k_eq_m3 | .1927795 .0902369 2.14 0.033 .0159005 .3696585 _k_eq_m2 | .1540638 .0894043 1.72 0.085 -.0211831 .3293106 _k_eq_p0 | 1.068977 .0892098 11.98 0.000 .8941116 1.243843 _k_eq_p1 | 1.006862 .0907016 11.10 0.000 .8290722 1.184652 _k_eq_p2 | 1.062882 .0922647 11.52 0.000 .8820284 1.243736 _k_eq_p3 | 1.031628 .0947797 10.88 0.000 .8458445 1.217412 _k_eq_p4 | 1.056418 .0782796 13.50 0.000 .9029772 1.209858 eta | .2593535 .0068421 37.91 0.000 .2459418 .2727651 _cons | 2.098311 .0695652 30.16 0.000 1.961952 2.23467 ------------------------------------------------------------------------------ Absorbed degrees of freedom: -----------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | -------------+---------------------------------------| i | 1000 0 1000 | t | 13 1 12 | -----------------------------------------------------+ . . * Test reghdfe, proxy and absorbing a variable . gen k=round(x) //generate a categorical variable. Use it as a control . xtevent y eta, policyvar(z) window(3) proxy(x) nofe note addabsorb(k) reghdfe Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. (dropped 2 singleton observations) (MWFE estimator converged in 1 iterations) IV (2SLS) estimation -------------------- Estimates efficient for homoskedasticity only Statistics consistent for homoskedasticity only Number of obs = 12998 F( 9, 12960) = 0.53 Prob > F = 0.8521 Total (centered) SS = 39316.59193 Centered R2 = -4.5e+02 Total (uncentered) SS = 39316.59193 Uncentered R2 = -4.5e+02 Residual SS = 17592667.23 Root MSE = 36.84 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | -128.9603 4714.768 -0.03 0.978 -9370.598 9112.677 eta | 3.057847 103.4982 0.03 0.976 -199.8138 205.9294 _k_eq_m4 | -3.015101 105.0347 -0.03 0.977 -208.8986 202.8684 _k_eq_m3 | -3.201484 119.8647 -0.03 0.979 -238.154 231.751 _k_eq_p0 | -1.328407 88.66188 -0.01 0.988 -175.1187 172.4619 _k_eq_p1 | .9751639 6.763573 0.14 0.885 -12.28243 14.23276 _k_eq_p2 | -4.00355 192.9401 -0.02 0.983 -382.1945 374.1874 _k_eq_p3 | .9918023 12.95882 0.08 0.939 -24.40938 26.39299 _k_eq_p4 | -2.13739 139.3771 -0.02 0.988 -275.3369 271.0621 ------------------------------------------------------------------------------ Underidentification test (Anderson canon. corr. LM statistic): 0.001 Chi-sq(1) P-val = 0.9781 ------------------------------------------------------------------------------ Weak identification test (Cragg-Donald Wald F statistic): 0.001 Stock-Yogo weak ID test critical values: 10% maximal IV size 16.38 15% maximal IV size 8.96 20% maximal IV size 6.66 25% maximal IV size 5.53 Source: Stock-Yogo (2005). Reproduced by permission. ------------------------------------------------------------------------------ Sargan statistic (overidentification test of all instruments): 0.000 (equation exactly identified) ------------------------------------------------------------------------------ Instrumented: x Included instruments: eta _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 Excluded instruments: _fd1z Partialled-out: _cons nb: total SS, model F and R2s are after partialling-out; any small-sample adjustments include partialled-out variables in regressor count K ------------------------------------------------------------------------------ Absorbed degrees of freedom: -----------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | -------------+---------------------------------------| k | 29 0 29 | -----------------------------------------------------+ . . *Test additional cluster and robust specifications . xtevent y eta, policyvar(z) window(3) proxy(x) nofe note addabsorb(k) reghdfe robust cluster(i) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. (dropped 2 singleton observations) (MWFE estimator converged in 1 iterations) IV (2SLS) estimation -------------------- Estimates efficient for homoskedasticity only Statistics robust to heteroskedasticity and clustering on i Number of clusters (i) = 1000 Number of obs = 12998 F( 9, 999) = 0.58 Prob > F = 0.8152 Total (centered) SS = 39316.59193 Centered R2 = -4.5e+02 Total (uncentered) SS = 39316.59193 Uncentered R2 = -4.5e+02 Residual SS = 17592667.23 Root MSE = 36.84 ------------------------------------------------------------------------------ | Robust y | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | -128.9603 4423.488 -0.03 0.977 -8809.354 8551.433 eta | 3.057847 97.09499 0.03 0.975 -187.4757 193.5914 _k_eq_m4 | -3.015101 98.55369 -0.03 0.976 -196.4111 190.3809 _k_eq_m3 | -3.201484 112.5611 -0.03 0.977 -224.0847 217.6817 _k_eq_p0 | -1.328407 83.1373 -0.02 0.987 -164.4722 161.8154 _k_eq_p1 | .9751639 6.380948 0.15 0.879 -11.54643 13.49676 _k_eq_p2 | -4.00355 180.9694 -0.02 0.982 -359.1274 351.1203 _k_eq_p3 | .9918023 12.13761 0.08 0.935 -22.82634 24.80994 _k_eq_p4 | -2.13739 130.7144 -0.02 0.987 -258.6437 254.3689 ------------------------------------------------------------------------------ Underidentification test (Kleibergen-Paap rk LM statistic): 0.001 Chi-sq(1) P-val = 0.9767 ------------------------------------------------------------------------------ Weak identification test (Cragg-Donald Wald F statistic): 0.001 (Kleibergen-Paap rk Wald F statistic): 0.001 Stock-Yogo weak ID test critical values: 10% maximal IV size 16.38 15% maximal IV size 8.96 20% maximal IV size 6.66 25% maximal IV size 5.53 Source: Stock-Yogo (2005). Reproduced by permission. NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors. ------------------------------------------------------------------------------ Hansen J statistic (overidentification test of all instruments): 0.000 (equation exactly identified) ------------------------------------------------------------------------------ Instrumented: x Included instruments: eta _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 Excluded instruments: _fd1z Partialled-out: _cons nb: total SS, model F and R2s are after partialling-out; any small-sample adjustments include partialled-out variables in regressor count K ------------------------------------------------------------------------------ Absorbed degrees of freedom: -----------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | -------------+---------------------------------------| k | 29 0 29 | -----------------------------------------------------+ . *equivalent specification (it admits use of vce) . xtevent y eta, policyvar(z) window(3) proxy(x) nofe note addabsorb(k) reghdfe vce(robust cluster i) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. (dropped 2 singleton observations) (MWFE estimator converged in 1 iterations) IV (2SLS) estimation -------------------- Estimates efficient for homoskedasticity only Statistics robust to heteroskedasticity and clustering on i Number of clusters (i) = 1000 Number of obs = 12998 F( 9, 999) = 0.58 Prob > F = 0.8152 Total (centered) SS = 39316.59193 Centered R2 = -4.5e+02 Total (uncentered) SS = 39316.59193 Uncentered R2 = -4.5e+02 Residual SS = 17592667.23 Root MSE = 36.84 ------------------------------------------------------------------------------ | Robust y | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | -128.9603 4423.488 -0.03 0.977 -8809.354 8551.433 eta | 3.057847 97.09499 0.03 0.975 -187.4757 193.5914 _k_eq_m4 | -3.015101 98.55369 -0.03 0.976 -196.4111 190.3809 _k_eq_m3 | -3.201484 112.5611 -0.03 0.977 -224.0847 217.6817 _k_eq_p0 | -1.328407 83.1373 -0.02 0.987 -164.4722 161.8154 _k_eq_p1 | .9751639 6.380948 0.15 0.879 -11.54643 13.49676 _k_eq_p2 | -4.00355 180.9694 -0.02 0.982 -359.1274 351.1203 _k_eq_p3 | .9918023 12.13761 0.08 0.935 -22.82634 24.80994 _k_eq_p4 | -2.13739 130.7144 -0.02 0.987 -258.6437 254.3689 ------------------------------------------------------------------------------ Underidentification test (Kleibergen-Paap rk LM statistic): 0.001 Chi-sq(1) P-val = 0.9767 ------------------------------------------------------------------------------ Weak identification test (Cragg-Donald Wald F statistic): 0.001 (Kleibergen-Paap rk Wald F statistic): 0.001 Stock-Yogo weak ID test critical values: 10% maximal IV size 16.38 15% maximal IV size 8.96 20% maximal IV size 6.66 25% maximal IV size 5.53 Source: Stock-Yogo (2005). Reproduced by permission. NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors. ------------------------------------------------------------------------------ Hansen J statistic (overidentification test of all instruments): 0.000 (equation exactly identified) ------------------------------------------------------------------------------ Instrumented: x Included instruments: eta _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 Excluded instruments: _fd1z Partialled-out: _cons nb: total SS, model F and R2s are after partialling-out; any small-sample adjustments include partialled-out variables in regressor count K ------------------------------------------------------------------------------ Absorbed degrees of freedom: -----------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | -------------+---------------------------------------| k | 29 0 29 | -----------------------------------------------------+ . . /* > *Test other standard-error specifications (not allowed) > xtevent y eta, policyvar(z) window(3) proxy(x) nofe note addabsorb(k) reghdfe vce(bootstrap) //will show an er > ror message > */ . . *Imputation of policyvar without verifying staggered adoption conditions . xtevent y eta, policyvar(z) timevar(t) window(5) impute(nuchange) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(32, 18968) = 1227.00 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0025 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0427905 .0658651 0.65 0.516 -.0863109 .1718919 _k_eq_m5 | .1142531 .0829476 1.38 0.168 -.0483316 .2768378 _k_eq_m4 | .1235599 .0815648 1.51 0.130 -.0363144 .2834342 _k_eq_m3 | .1449225 .0806382 1.80 0.072 -.0131355 .3029805 _k_eq_m2 | .063277 .0801788 0.79 0.430 -.0938806 .2204345 _k_eq_p0 | 1.028802 .0803954 12.80 0.000 .8712198 1.186384 _k_eq_p1 | .9546164 .0816477 11.69 0.000 .7945797 1.114653 _k_eq_p2 | 1.045062 .0825558 12.66 0.000 .8832449 1.206878 _k_eq_p3 | 1.03385 .0841759 12.28 0.000 .868858 1.198842 _k_eq_p4 | .9980611 .0862184 11.58 0.000 .8290654 1.167057 _k_eq_p5 | 1.148754 .0879135 13.07 0.000 .9764361 1.321073 _k_eq_p6 | 1.012673 .0678512 14.92 0.000 .8796789 1.145668 eta | .2525003 .0047011 53.71 0.000 .2432856 .2617149 | t | 2 | .131826 .0448419 2.94 0.003 .043932 .21972 3 | .3236485 .0448713 7.21 0.000 .2356967 .4116003 4 | .5422926 .0449192 12.07 0.000 .4542469 .6303384 5 | .7656458 .0449832 17.02 0.000 .6774747 .8538169 6 | .9441123 .0450735 20.95 0.000 .8557641 1.03246 7 | 1.110485 .0451627 24.59 0.000 1.021962 1.199008 8 | 1.391892 .0452818 30.74 0.000 1.303136 1.480649 9 | 1.569177 .0454232 34.55 0.000 1.480143 1.65821 10 | 1.798732 .0455576 39.48 0.000 1.709435 1.888029 11 | 1.944693 .0457317 42.52 0.000 1.855054 2.034331 12 | 2.118919 .0459368 46.13 0.000 2.028878 2.208959 13 | 2.358402 .0461766 51.07 0.000 2.267891 2.448912 14 | 2.508353 .046364 54.10 0.000 2.417476 2.599231 15 | 2.743864 .0465675 58.92 0.000 2.652588 2.835141 16 | 2.96558 .0467943 63.37 0.000 2.873859 3.057301 17 | 3.171225 .0469401 67.56 0.000 3.079219 3.263232 18 | 3.334319 .0470768 70.83 0.000 3.242045 3.426594 19 | 3.537133 .04722 74.91 0.000 3.444577 3.629688 20 | 3.737882 .0474178 78.83 0.000 3.644939 3.830825 | _cons | .2224166 .0725583 3.07 0.002 .0801958 .3646373 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18968) = 21.596 Prob > F = 0.000 . . *outer imputation of policyvar verifying staggered adoption conditions . xtevent y eta, policyvar(z) timevar(t) window(5) impute(stag) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(32, 18968) = 1227.00 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0025 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0427905 .0658651 0.65 0.516 -.0863109 .1718919 _k_eq_m5 | .1142531 .0829476 1.38 0.168 -.0483316 .2768378 _k_eq_m4 | .1235599 .0815648 1.51 0.130 -.0363144 .2834342 _k_eq_m3 | .1449225 .0806382 1.80 0.072 -.0131355 .3029805 _k_eq_m2 | .063277 .0801788 0.79 0.430 -.0938806 .2204345 _k_eq_p0 | 1.028802 .0803954 12.80 0.000 .8712198 1.186384 _k_eq_p1 | .9546164 .0816477 11.69 0.000 .7945797 1.114653 _k_eq_p2 | 1.045062 .0825558 12.66 0.000 .8832449 1.206878 _k_eq_p3 | 1.03385 .0841759 12.28 0.000 .868858 1.198842 _k_eq_p4 | .9980611 .0862184 11.58 0.000 .8290654 1.167057 _k_eq_p5 | 1.148754 .0879135 13.07 0.000 .9764361 1.321073 _k_eq_p6 | 1.012673 .0678512 14.92 0.000 .8796789 1.145668 eta | .2525003 .0047011 53.71 0.000 .2432856 .2617149 | t | 2 | .131826 .0448419 2.94 0.003 .043932 .21972 3 | .3236485 .0448713 7.21 0.000 .2356967 .4116003 4 | .5422926 .0449192 12.07 0.000 .4542469 .6303384 5 | .7656458 .0449832 17.02 0.000 .6774747 .8538169 6 | .9441123 .0450735 20.95 0.000 .8557641 1.03246 7 | 1.110485 .0451627 24.59 0.000 1.021962 1.199008 8 | 1.391892 .0452818 30.74 0.000 1.303136 1.480649 9 | 1.569177 .0454232 34.55 0.000 1.480143 1.65821 10 | 1.798732 .0455576 39.48 0.000 1.709435 1.888029 11 | 1.944693 .0457317 42.52 0.000 1.855054 2.034331 12 | 2.118919 .0459368 46.13 0.000 2.028878 2.208959 13 | 2.358402 .0461766 51.07 0.000 2.267891 2.448912 14 | 2.508353 .046364 54.10 0.000 2.417476 2.599231 15 | 2.743864 .0465675 58.92 0.000 2.652588 2.835141 16 | 2.96558 .0467943 63.37 0.000 2.873859 3.057301 17 | 3.171225 .0469401 67.56 0.000 3.079219 3.263232 18 | 3.334319 .0470768 70.83 0.000 3.242045 3.426594 19 | 3.537133 .04722 74.91 0.000 3.444577 3.629688 20 | 3.737882 .0474178 78.83 0.000 3.644939 3.830825 | _cons | .2224166 .0725583 3.07 0.002 .0801958 .3646373 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18968) = 21.596 Prob > F = 0.000 . . *outer and inner imputation of policyvar verifying staggered adoption conditions . xtevent y eta, policyvar(z) timevar(t) window(5) impute(instag) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(32, 18968) = 1227.00 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0025 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0427905 .0658651 0.65 0.516 -.0863109 .1718919 _k_eq_m5 | .1142531 .0829476 1.38 0.168 -.0483316 .2768378 _k_eq_m4 | .1235599 .0815648 1.51 0.130 -.0363144 .2834342 _k_eq_m3 | .1449225 .0806382 1.80 0.072 -.0131355 .3029805 _k_eq_m2 | .063277 .0801788 0.79 0.430 -.0938806 .2204345 _k_eq_p0 | 1.028802 .0803954 12.80 0.000 .8712198 1.186384 _k_eq_p1 | .9546164 .0816477 11.69 0.000 .7945797 1.114653 _k_eq_p2 | 1.045062 .0825558 12.66 0.000 .8832449 1.206878 _k_eq_p3 | 1.03385 .0841759 12.28 0.000 .868858 1.198842 _k_eq_p4 | .9980611 .0862184 11.58 0.000 .8290654 1.167057 _k_eq_p5 | 1.148754 .0879135 13.07 0.000 .9764361 1.321073 _k_eq_p6 | 1.012673 .0678512 14.92 0.000 .8796789 1.145668 eta | .2525003 .0047011 53.71 0.000 .2432856 .2617149 | t | 2 | .131826 .0448419 2.94 0.003 .043932 .21972 3 | .3236485 .0448713 7.21 0.000 .2356967 .4116003 4 | .5422926 .0449192 12.07 0.000 .4542469 .6303384 5 | .7656458 .0449832 17.02 0.000 .6774747 .8538169 6 | .9441123 .0450735 20.95 0.000 .8557641 1.03246 7 | 1.110485 .0451627 24.59 0.000 1.021962 1.199008 8 | 1.391892 .0452818 30.74 0.000 1.303136 1.480649 9 | 1.569177 .0454232 34.55 0.000 1.480143 1.65821 10 | 1.798732 .0455576 39.48 0.000 1.709435 1.888029 11 | 1.944693 .0457317 42.52 0.000 1.855054 2.034331 12 | 2.118919 .0459368 46.13 0.000 2.028878 2.208959 13 | 2.358402 .0461766 51.07 0.000 2.267891 2.448912 14 | 2.508353 .046364 54.10 0.000 2.417476 2.599231 15 | 2.743864 .0465675 58.92 0.000 2.652588 2.835141 16 | 2.96558 .0467943 63.37 0.000 2.873859 3.057301 17 | 3.171225 .0469401 67.56 0.000 3.079219 3.263232 18 | 3.334319 .0470768 70.83 0.000 3.242045 3.426594 19 | 3.537133 .04722 74.91 0.000 3.444577 3.629688 20 | 3.737882 .0474178 78.83 0.000 3.644939 3.830825 | _cons | .2224166 .0725583 3.07 0.002 .0801958 .3646373 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18968) = 21.596 Prob > F = 0.000 . . *outer and inner mputation of policyvar. Adds the imputed policyvar to the database . xtevent y eta, policyvar(z) timevar(t) window(5) impute(instag, saveimp) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(32, 18968) = 1227.00 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0025 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0427905 .0658651 0.65 0.516 -.0863109 .1718919 _k_eq_m5 | .1142531 .0829476 1.38 0.168 -.0483316 .2768378 _k_eq_m4 | .1235599 .0815648 1.51 0.130 -.0363144 .2834342 _k_eq_m3 | .1449225 .0806382 1.80 0.072 -.0131355 .3029805 _k_eq_m2 | .063277 .0801788 0.79 0.430 -.0938806 .2204345 _k_eq_p0 | 1.028802 .0803954 12.80 0.000 .8712198 1.186384 _k_eq_p1 | .9546164 .0816477 11.69 0.000 .7945797 1.114653 _k_eq_p2 | 1.045062 .0825558 12.66 0.000 .8832449 1.206878 _k_eq_p3 | 1.03385 .0841759 12.28 0.000 .868858 1.198842 _k_eq_p4 | .9980611 .0862184 11.58 0.000 .8290654 1.167057 _k_eq_p5 | 1.148754 .0879135 13.07 0.000 .9764361 1.321073 _k_eq_p6 | 1.012673 .0678512 14.92 0.000 .8796789 1.145668 eta | .2525003 .0047011 53.71 0.000 .2432856 .2617149 | t | 2 | .131826 .0448419 2.94 0.003 .043932 .21972 3 | .3236485 .0448713 7.21 0.000 .2356967 .4116003 4 | .5422926 .0449192 12.07 0.000 .4542469 .6303384 5 | .7656458 .0449832 17.02 0.000 .6774747 .8538169 6 | .9441123 .0450735 20.95 0.000 .8557641 1.03246 7 | 1.110485 .0451627 24.59 0.000 1.021962 1.199008 8 | 1.391892 .0452818 30.74 0.000 1.303136 1.480649 9 | 1.569177 .0454232 34.55 0.000 1.480143 1.65821 10 | 1.798732 .0455576 39.48 0.000 1.709435 1.888029 11 | 1.944693 .0457317 42.52 0.000 1.855054 2.034331 12 | 2.118919 .0459368 46.13 0.000 2.028878 2.208959 13 | 2.358402 .0461766 51.07 0.000 2.267891 2.448912 14 | 2.508353 .046364 54.10 0.000 2.417476 2.599231 15 | 2.743864 .0465675 58.92 0.000 2.652588 2.835141 16 | 2.96558 .0467943 63.37 0.000 2.873859 3.057301 17 | 3.171225 .0469401 67.56 0.000 3.079219 3.263232 18 | 3.334319 .0470768 70.83 0.000 3.242045 3.426594 19 | 3.537133 .04722 74.91 0.000 3.444577 3.629688 20 | 3.737882 .0474178 78.83 0.000 3.644939 3.830825 | _cons | .2224166 .0725583 3.07 0.002 .0801958 .3646373 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18968) = 21.596 Prob > F = 0.000 . drop z_imputed . . *imputation fails if staggered conditions are not satisfied. It reverts to no imputation . replace z=0.5 in 7 (1 real change made) . xtevent y eta, policyvar(z) timevar(t) window(5) impute(instag) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator The policy variable is not binary. Assuming non-staggered adoption (no imputation). If event dummies and variables are saved, event-time will be missing. Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.77 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7232 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0715983 .1104562 0.65 0.517 -.1449249 .2881214 _k_eq_m5 | .1675625 .1178717 1.42 0.155 -.0634969 .3986219 _k_eq_m4 | .1035511 .1131158 0.92 0.360 -.1181854 .3252877 _k_eq_m3 | .1521469 .1084987 1.40 0.161 -.060539 .3648328 _k_eq_m2 | .0526461 .1059459 0.50 0.619 -.1550355 .2603278 _k_eq_p0 | 1.0014 .1046661 9.57 0.000 .7962272 1.206573 _k_eq_p1 | .8948379 .1058614 8.45 0.000 .687322 1.102354 _k_eq_p2 | 1.004457 .1091755 9.20 0.000 .7904442 1.218469 _k_eq_p3 | .9638896 .1140277 8.45 0.000 .7403654 1.187414 _k_eq_p4 | .9890446 .118959 8.31 0.000 .7558538 1.222235 _k_eq_p5 | 1.184657 .1269664 9.33 0.000 .9357693 1.433544 _k_eq_p6 | 1.075386 .1182108 9.10 0.000 .8436616 1.30711 eta | .2616141 .0096787 27.03 0.000 .2426414 .2805868 | t | 8 | .2816914 .0446005 6.32 0.000 .1942627 .3691201 9 | .4601468 .044814 10.27 0.000 .3722997 .5479939 10 | .6888977 .0451632 15.25 0.000 .6003661 .7774294 11 | .8350845 .0456947 18.28 0.000 .7455109 .924658 12 | 1.007945 .0464008 21.72 0.000 .9169878 1.098903 13 | 1.246861 .0472914 26.37 0.000 1.154158 1.339565 14 | 1.395731 .0481866 28.97 0.000 1.301272 1.490189 15 | 1.628993 .0491426 33.15 0.000 1.53266 1.725325 | _cons | 1.312443 .1041222 12.60 0.000 1.108336 1.516549 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.318 Prob > F = 0.000 . replace z=1 in 7 (1 real change made) . . *Difference in averages between the post and pre-period . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) diffavg No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 Difference in pre and post-period averages from lincom: ( 1) - .1666667*_k_eq_m6 - .1666667*_k_eq_m5 - .1666667*_k_eq_m4 - .1666667*_k_eq_m3 - .1666667*_k_eq_m2 + .1428571*_k_eq_p0 + .1428571*_k_eq_p1 + .1428571*_k_eq_p2 + .1428571*_k_eq_p3 + .1428571*_k_eq_p4 + .1428571*_k_eq_p5 + .1428571*_k_eq_p6 = 0 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- (1) | .9247 .07987 11.58 0.000 .7682 1.081 ------------------------------------------------------------------------------ . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(4) diff No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 11,000 Absorbed variable: i No. of categories = 1,000 F(21, 9979) = 364.11 Prob > F = 0.0000 R-squared = 0.7597 Adj R-squared = 0.7351 Root MSE = 0.9988 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | .1064592 .0882523 1.21 0.228 -.0665332 .2794515 _k_eq_m4 | .2084681 .1003321 2.08 0.038 .0117969 .4051393 _k_eq_m3 | .1319181 .0985816 1.34 0.181 -.0613217 .325158 _k_eq_m2 | .1236275 .0952815 1.30 0.194 -.0631435 .3103985 _k_eq_p0 | 1.078656 .0957062 11.27 0.000 .8910527 1.26626 _k_eq_p1 | .9753733 .0965706 10.10 0.000 .7860754 1.164671 _k_eq_p2 | 1.065092 .0985262 10.81 0.000 .8719606 1.258223 _k_eq_p3 | .9877504 .1020527 9.68 0.000 .7877065 1.187794 _k_eq_p4 | 1.016109 .1067581 9.52 0.000 .8068417 1.225377 _k_eq_p5 | 1.098892 .0927222 11.85 0.000 .9171381 1.280647 eta | .2578974 .0080213 32.15 0.000 .242174 .2736209 | t | 7 | .1679718 .044711 3.76 0.000 .0803291 .2556144 8 | .4505925 .0448062 10.06 0.000 .3627633 .5384218 9 | .6291955 .0449973 13.98 0.000 .5409918 .7173992 10 | .8591139 .04526 18.98 0.000 .770395 .9478327 11 | 1.005804 .0456234 22.05 0.000 .9163732 1.095235 12 | 1.17937 .0460412 25.62 0.000 1.08912 1.26962 13 | 1.418885 .0466189 30.44 0.000 1.327502 1.510267 14 | 1.566952 .0471667 33.22 0.000 1.474495 1.659408 15 | 1.801863 .047671 37.80 0.000 1.708418 1.895308 16 | 2.0219 .0484162 41.76 0.000 1.926995 2.116806 | _cons | 1.108744 .0884728 12.53 0.000 .9353196 1.282169 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 9979) = 12.378 Prob > F = 0.000 Difference in pre and post-period averages from lincom: ( 1) - .2*_k_eq_m5 - .2*_k_eq_m4 - .2*_k_eq_m3 - .2*_k_eq_m2 + .1666667*_k_eq_p0 + .1666667*_k_eq_p1 + .1666667*_k_eq_p2 + .1666667*_k_eq_p3 + .1666667*_k_eq_p4 + .1666667*_k_eq_p5 = 0 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- (1) | .9229 .05989 15.41 0.000 .8055 1.04 ------------------------------------------------------------------------------ . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) norm(1) diff No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.8328289 .1233777 -6.75 0.000 -1.074681 -.5909764 _k_eq_m5 | -.736965 .1271325 -5.80 0.000 -.986178 -.4877521 _k_eq_m4 | -.8009222 .1213221 -6.60 0.000 -1.038745 -.563099 _k_eq_m3 | -.7522801 .1154607 -6.52 0.000 -.9786132 -.525947 _k_eq_m2 | -.8517438 .1111767 -7.66 0.000 -1.069679 -.6338085 _k_eq_m1 | -.9021193 .1058732 -8.52 0.000 -1.109658 -.6945801 _k_eq_p0 | .0871124 .1026674 0.85 0.396 -.1141426 .2883674 _k_eq_p2 | .0957367 .1031843 0.93 0.354 -.1065316 .298005 _k_eq_p3 | .0599054 .1067417 0.56 0.575 -.1493363 .2691471 _k_eq_p4 | .0890452 .1110392 0.80 0.423 -.1286206 .3067111 _k_eq_p5 | .2811028 .1181413 2.38 0.017 .0495151 .5126906 _k_eq_p6 | .1706773 .105891 1.61 0.107 -.0368968 .3782514 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 2.216336 .1162453 19.07 0.000 1.988465 2.444207 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 Difference in pre and post-period averages from lincom: ( 1) - .1666667*_k_eq_m6 - .1666667*_k_eq_m5 - .1666667*_k_eq_m4 - .1666667*_k_eq_m3 - .1666667*_k_eq_m2 - .1666667*_k_eq_m1 + .1428571*_k_eq_p0 + .1428571*_k_eq_p2 + .1428571*_k_eq_p3 + .1428571*_k_eq_p4 + .1428571*_k_eq_p5 + .1428571*_k_eq_p6 = 0 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- (1) | .9247 .07987 11.58 0.000 .7682 1.081 ------------------------------------------------------------------------------ . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) norm(2) diff No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.9285656 .1294566 -7.17 0.000 -1.182334 -.6747968 _k_eq_m5 | -.8327017 .1322647 -6.30 0.000 -1.091975 -.5734282 _k_eq_m4 | -.8966588 .1261746 -7.11 0.000 -1.143994 -.6493237 _k_eq_m3 | -.8480167 .1199706 -7.07 0.000 -1.08319 -.6128431 _k_eq_m2 | -.9474805 .1152216 -8.22 0.000 -1.173345 -.7216161 _k_eq_m1 | -.997856 .1091899 -9.14 0.000 -1.211897 -.7838152 _k_eq_p0 | -.0086242 .1051532 -0.08 0.935 -.214752 .1975035 _k_eq_p1 | -.0957367 .1031843 -0.93 0.354 -.298005 .1065316 _k_eq_p3 | -.0358312 .1061712 -0.34 0.736 -.2439545 .172292 _k_eq_p4 | -.0066914 .1099779 -0.06 0.951 -.2222769 .208894 _k_eq_p5 | .1853662 .1165692 1.59 0.112 -.0431399 .4138722 _k_eq_p6 | .0749406 .1024822 0.73 0.465 -.1259513 .2758326 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 2.312073 .1223282 18.90 0.000 2.072278 2.551868 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 Difference in pre and post-period averages from lincom: ( 1) - .1666667*_k_eq_m6 - .1666667*_k_eq_m5 - .1666667*_k_eq_m4 - .1666667*_k_eq_m3 - .1666667*_k_eq_m2 - .1666667*_k_eq_m1 + .1428571*_k_eq_p0 + .1428571*_k_eq_p1 + .1428571*_k_eq_p3 + .1428571*_k_eq_p4 + .1428571*_k_eq_p5 + .1428571*_k_eq_p6 = 0 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- (1) | .9247 .07987 11.58 0.000 .7682 1.081 ------------------------------------------------------------------------------ . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) norm(-2) diff No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0189149 .1043314 0.18 0.856 -.185602 .2234318 _k_eq_m5 | .1147788 .1144395 1.00 0.316 -.1095526 .3391102 _k_eq_m4 | .0508217 .1106011 0.46 0.646 -.1659853 .2676286 _k_eq_m3 | .0994637 .106911 0.93 0.352 -.1101097 .3090372 _k_eq_m1 | -.0503755 .105976 -0.48 0.635 -.2581161 .1573651 _k_eq_p0 | .9388562 .1090921 8.61 0.000 .7250071 1.152705 _k_eq_p1 | .8517438 .1111767 7.66 0.000 .6338085 1.069679 _k_eq_p2 | .9474805 .1152216 8.22 0.000 .7216161 1.173345 _k_eq_p3 | .9116492 .1206376 7.56 0.000 .675168 1.14813 _k_eq_p4 | .9407891 .1258371 7.48 0.000 .6941154 1.187463 _k_eq_p5 | 1.132847 .1341742 8.44 0.000 .8698303 1.395863 _k_eq_p6 | 1.022421 .1268115 8.06 0.000 .7738374 1.271005 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.364592 .099556 13.71 0.000 1.169436 1.559748 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 Difference in pre and post-period averages from lincom: ( 1) - .1666667*_k_eq_m6 - .1666667*_k_eq_m5 - .1666667*_k_eq_m4 - .1666667*_k_eq_m3 - .1666667*_k_eq_m1 + .1428571*_k_eq_p0 + .1428571*_k_eq_p1 + .1428571*_k_eq_p2 + .1428571*_k_eq_p3 + .1428571*_k_eq_p4 + .1428571*_k_eq_p5 + .1428571*_k_eq_p6 = 0 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- (1) | .9247 .07987 11.58 0.000 .7682 1.081 ------------------------------------------------------------------------------ . . *Trend adjustment. Default method is GMM . xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.3045795 .235951 -1.29 0.197 -.7671052 .1579461 _k_eq_m5 | -.1339416 .1179329 -1.14 0.256 -.3651209 .0972377 _k_eq_m4 | -.1231248 .1503292 -0.82 0.413 -.4178093 .1715598 _k_eq_m3 | .0002913 .1117368 0.00 0.998 -.2187421 .2193246 _k_eq_m2 | -.0243985 .0930362 -0.26 0.793 -.2067737 .1579767 _k_eq_p0 | 1.064006 .1386137 7.68 0.000 .7922867 1.335725 _k_eq_p1 | 1.051667 .1846966 5.69 0.000 .6896137 1.413721 _k_eq_p2 | 1.222178 .2361656 5.18 0.000 .7592315 1.685124 _k_eq_p3 | 1.261121 .2901196 4.35 0.000 .6924105 1.829831 _k_eq_p4 | 1.365034 .345605 3.95 0.000 .6875584 2.042511 _k_eq_p5 | 1.631866 .402778 4.05 0.000 .8423159 2.421416 _k_eq_p6 | 1.596214 .4556476 3.50 0.000 .7030261 2.489403 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . . *Trend adjustment. Use OLS instead . xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3, method(ols)) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 220.17 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .152087 .1461162 1.04 0.298 -.134339 .438513 _k_eq_m5 | -.125934 .1836685 -0.69 0.493 -.4859723 .2341043 _k_eq_m4 | -.1151506 .1387961 -0.83 0.407 -.3872273 .1569261 _k_eq_p0 | 1.071726 .1344586 7.97 0.000 .8081522 1.3353 _k_eq_p1 | 1.059353 .1785418 5.93 0.000 .7093646 1.409342 _k_eq_p2 | 1.229822 .227273 5.41 0.000 .784308 1.675337 _k_eq_p3 | 1.268729 .278136 4.56 0.000 .7235102 1.813948 _k_eq_p4 | 1.372616 .3300606 4.16 0.000 .7256111 2.019621 _k_eq_p5 | 1.639406 .3829713 4.28 0.000 .8886821 2.39013 _k_eq_p6 | 1.155004 .1423444 8.11 0.000 .8759717 1.434036 eta | .2616643 .0096793 27.03 0.000 .2426904 .2806382 | t | 8 | .2822747 .0445983 6.33 0.000 .1948504 .3696989 9 | .4603758 .0448124 10.27 0.000 .3725319 .5482198 10 | .6894459 .0451637 15.27 0.000 .6009133 .7779785 11 | .835453 .0456933 18.28 0.000 .7458823 .9250238 12 | 1.008194 .046401 21.73 0.000 .9172362 1.099152 13 | 1.247424 .047293 26.38 0.000 1.154717 1.34013 14 | 1.396251 .048186 28.98 0.000 1.301794 1.490709 15 | 1.629377 .0491415 33.16 0.000 1.533047 1.725708 | _ttrend | -.074774 .0542561 -1.38 0.168 -.1811302 .0315822 _cons | 1.231542 .1404453 8.77 0.000 .9562324 1.506851 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 10.318 Prob > F = 0.000 . . *Compare: 1) no adjustment; 2) adjustment by GMM and; 3) adjustment by OLS . xtevent y eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, name(g1) . xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3, method(gmm)) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.3045795 .235951 -1.29 0.197 -.7671052 .1579461 _k_eq_m5 | -.1339416 .1179329 -1.14 0.256 -.3651209 .0972377 _k_eq_m4 | -.1231248 .1503292 -0.82 0.413 -.4178093 .1715598 _k_eq_m3 | .0002913 .1117368 0.00 0.998 -.2187421 .2193246 _k_eq_m2 | -.0243985 .0930362 -0.26 0.793 -.2067737 .1579767 _k_eq_p0 | 1.064006 .1386137 7.68 0.000 .7922867 1.335725 _k_eq_p1 | 1.051667 .1846966 5.69 0.000 .6896137 1.413721 _k_eq_p2 | 1.222178 .2361656 5.18 0.000 .7592315 1.685124 _k_eq_p3 | 1.261121 .2901196 4.35 0.000 .6924105 1.829831 _k_eq_p4 | 1.365034 .345605 3.95 0.000 .6875584 2.042511 _k_eq_p5 | 1.631866 .402778 4.05 0.000 .8423159 2.421416 _k_eq_p6 | 1.596214 .4556476 3.50 0.000 .7030261 2.489403 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, name(g2) . xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3, method(ols)) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 220.17 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .152087 .1461162 1.04 0.298 -.134339 .438513 _k_eq_m5 | -.125934 .1836685 -0.69 0.493 -.4859723 .2341043 _k_eq_m4 | -.1151506 .1387961 -0.83 0.407 -.3872273 .1569261 _k_eq_p0 | 1.071726 .1344586 7.97 0.000 .8081522 1.3353 _k_eq_p1 | 1.059353 .1785418 5.93 0.000 .7093646 1.409342 _k_eq_p2 | 1.229822 .227273 5.41 0.000 .784308 1.675337 _k_eq_p3 | 1.268729 .278136 4.56 0.000 .7235102 1.813948 _k_eq_p4 | 1.372616 .3300606 4.16 0.000 .7256111 2.019621 _k_eq_p5 | 1.639406 .3829713 4.28 0.000 .8886821 2.39013 _k_eq_p6 | 1.155004 .1423444 8.11 0.000 .8759717 1.434036 eta | .2616643 .0096793 27.03 0.000 .2426904 .2806382 | t | 8 | .2822747 .0445983 6.33 0.000 .1948504 .3696989 9 | .4603758 .0448124 10.27 0.000 .3725319 .5482198 10 | .6894459 .0451637 15.27 0.000 .6009133 .7779785 11 | .835453 .0456933 18.28 0.000 .7458823 .9250238 12 | 1.008194 .046401 21.73 0.000 .9172362 1.099152 13 | 1.247424 .047293 26.38 0.000 1.154717 1.34013 14 | 1.396251 .048186 28.98 0.000 1.301794 1.490709 15 | 1.629377 .0491415 33.16 0.000 1.533047 1.725708 | _ttrend | -.074774 .0542561 -1.38 0.168 -.1811302 .0315822 _cons | 1.231542 .1404453 8.77 0.000 .9562324 1.506851 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 10.318 Prob > F = 0.000 . xteventplot, name(g3) . . graph combine g1 g2 g3, rows(2) . . graph drop _all . . *Sun and Abraham Estimator (2021) . *Generate cohort indicator . * This works because of staggered adoption . gen timet=t if z==1 (17,111 missing values generated) . by i: egen time_of_treat=min(timet) (13,720 missing values generated) . *Generate control cohort indicator. We use the never treated units as the control cohort. . gen never_treat=time_of_treat==. . *Could also use last trated as the control group . egen last_treat_time = max(time_of_treat) . gen last_treat = (time_of_treat == last_treat_time) . replace last_treat = . if time_of_treat == . (13,720 real changes made, 13,720 to missing) . gen cohort_for_last_treat = time_of_treat (13,720 missing values generated) . replace cohort_for_last_treat = . if last_treat (340 real changes made, 340 to missing) . . *Estimate the event-time coefficients with the Sun-and-Abraham Estimator. . xtevent y eta , policyvar(z) window(5) vce(cluster i) impute(nuchange) cohort(variable time_of_treat) control_ > cohort(variable never_treat) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator You have specified the cohort or the sunabraham option Event-time coefficients will be estimated with the Interaction Weighted Estimator of Sun and Abraham (2021) Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(32, 999) = 1319.19 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0025 (Std. err. adjusted for 1,000 clusters in i) ------------------------------------------------------------------------------ | Robust y | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0457452 .0747931 0.61 0.541 -.1010245 .1925149 _k_eq_m5 | .1189648 .0836275 1.42 0.155 -.0451409 .2830704 _k_eq_m4 | .1165655 .0842832 1.38 0.167 -.0488269 .2819579 _k_eq_m3 | .1449931 .0775793 1.87 0.062 -.0072439 .2972301 _k_eq_m2 | .0638224 .0835375 0.76 0.445 -.1001067 .2277515 _k_eq_p0 | 1.027701 .0821568 12.51 0.000 .866481 1.18892 _k_eq_p1 | .9636293 .0898445 10.73 0.000 .7873238 1.139935 _k_eq_p2 | 1.08301 .0852336 12.71 0.000 .9157528 1.250268 _k_eq_p3 | 1.046513 .0892559 11.72 0.000 .871362 1.221663 _k_eq_p4 | .9859918 .0880341 11.20 0.000 .8132388 1.158745 _k_eq_p5 | 1.13976 .0920912 12.38 0.000 .9590461 1.320475 _k_eq_p6 | .9998216 .0864235 11.57 0.000 .8302292 1.169414 eta | .2525003 .004768 52.96 0.000 .2431439 .2618567 | t | 2 | .131826 .0457042 2.88 0.004 .0421387 .2215133 3 | .3236485 .0456104 7.10 0.000 .2341453 .4131517 4 | .5422926 .0461881 11.74 0.000 .4516557 .6329296 5 | .7656458 .0462201 16.57 0.000 .6749462 .8563454 6 | .9441123 .0466213 20.25 0.000 .8526255 1.035599 7 | 1.110485 .0462219 24.03 0.000 1.019782 1.201188 8 | 1.391892 .0456709 30.48 0.000 1.30227 1.481514 9 | 1.569177 .0458476 34.23 0.000 1.479208 1.659145 10 | 1.798732 .0457135 39.35 0.000 1.709027 1.888438 11 | 1.944693 .045547 42.70 0.000 1.855314 2.034071 12 | 2.118919 .0472219 44.87 0.000 2.026253 2.211584 13 | 2.358402 .0486343 48.49 0.000 2.262965 2.453839 14 | 2.508353 .0471617 53.19 0.000 2.415806 2.600901 15 | 2.743864 .0474198 57.86 0.000 2.65081 2.836918 16 | 2.96558 .0471802 62.86 0.000 2.872996 3.058164 17 | 3.171225 .048172 65.83 0.000 3.076695 3.265755 18 | 3.334319 .0476294 70.01 0.000 3.240854 3.427784 19 | 3.537133 .0477691 74.05 0.000 3.443394 3.630872 20 | 3.737882 .0478568 78.11 0.000 3.643971 3.831794 | _cons | .2224166 .0715959 3.11 0.002 .081921 .3629121 ------------------------------------------------------------------------------ . *Use reghdfe as the underlying estimation command . xtevent y eta , policyvar(z) window(5) vce(cluster i) impute(nuchange) cohort(variable time_of_treat) control_ > cohort(variable never_treat) reghdfe Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator You have specified the cohort or the sunabraham option Event-time coefficients will be estimated with the Interaction Weighted Estimator of Sun and Abraham (2021) HDFE Linear regression Number of obs = 20,000 Absorbing 2 HDFE groups F(13, 999) = 619.55 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0026 (Std. err. adjusted for 1,000 clusters in i) ------------------------------------------------------------------------------ | Robust y | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0457452 .0729014 0.63 0.530 -.0973123 .1888027 _k_eq_m5 | .1189648 .0815853 1.46 0.145 -.0411334 .2790629 _k_eq_m4 | .1165655 .082259 1.42 0.157 -.0448547 .2779857 _k_eq_m3 | .1449931 .0757206 1.91 0.056 -.0035966 .2935829 _k_eq_m2 | .0638224 .0815323 0.78 0.434 -.0961718 .2238166 _k_eq_p0 | 1.027701 .0802026 12.81 0.000 .8703158 1.185086 _k_eq_p1 | .9636293 .0876691 10.99 0.000 .7915927 1.135666 _k_eq_p2 | 1.08301 .0831531 13.02 0.000 .9198353 1.246185 _k_eq_p3 | 1.046513 .0871074 12.01 0.000 .8755782 1.217447 _k_eq_p4 | .9859918 .0858694 11.48 0.000 .8174868 1.154497 _k_eq_p5 | 1.13976 .0897592 12.70 0.000 .9636221 1.315899 _k_eq_p6 | .9998216 .0842215 11.87 0.000 .8345503 1.165093 eta | .2525003 .0046472 54.33 0.000 .2433809 .2616196 _cons | 2.072326 .0593099 34.94 0.000 1.955939 2.188712 ------------------------------------------------------------------------------ . * Automatic generation of cohort and control_cohort variables . xtevent y eta , policyvar(z) window(5) vce(cluster i) impute(nuchange) cohort(create) reghdfe Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator You have specified the cohort or the sunabraham option Event-time coefficients will be estimated with the Interaction Weighted Estimator of Sun and Abraham (2021) Control cohort not specified. Using values with cohort variable == . as the control cohort HDFE Linear regression Number of obs = 20,000 Absorbing 2 HDFE groups F(13, 999) = 619.55 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0026 (Std. err. adjusted for 1,000 clusters in i) ------------------------------------------------------------------------------ | Robust y | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0457452 .0729014 0.63 0.530 -.0973123 .1888027 _k_eq_m5 | .1189648 .0815853 1.46 0.145 -.0411334 .2790629 _k_eq_m4 | .1165655 .082259 1.42 0.157 -.0448547 .2779857 _k_eq_m3 | .1449931 .0757206 1.91 0.056 -.0035966 .2935829 _k_eq_m2 | .0638224 .0815323 0.78 0.434 -.0961718 .2238166 _k_eq_p0 | 1.027701 .0802026 12.81 0.000 .8703158 1.185086 _k_eq_p1 | .9636293 .0876691 10.99 0.000 .7915927 1.135666 _k_eq_p2 | 1.08301 .0831531 13.02 0.000 .9198353 1.246185 _k_eq_p3 | 1.046513 .0871074 12.01 0.000 .8755782 1.217447 _k_eq_p4 | .9859918 .0858694 11.48 0.000 .8174868 1.154497 _k_eq_p5 | 1.13976 .0897592 12.70 0.000 .9636221 1.315899 _k_eq_p6 | .9998216 .0842215 11.87 0.000 .8345503 1.165093 eta | .2525003 .0046472 54.33 0.000 .2433809 .2616196 _cons | 2.072326 .0593099 34.94 0.000 1.955939 2.188712 ------------------------------------------------------------------------------ . . *Overlay trend plot . xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3, method(gmm) saveov) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.3045795 .235951 -1.29 0.197 -.7671052 .1579461 _k_eq_m5 | -.1339416 .1179329 -1.14 0.256 -.3651209 .0972377 _k_eq_m4 | -.1231248 .1503292 -0.82 0.413 -.4178093 .1715598 _k_eq_m3 | .0002913 .1117368 0.00 0.998 -.2187421 .2193246 _k_eq_m2 | -.0243985 .0930362 -0.26 0.793 -.2067737 .1579767 _k_eq_p0 | 1.064006 .1386137 7.68 0.000 .7922867 1.335725 _k_eq_p1 | 1.051667 .1846966 5.69 0.000 .6896137 1.413721 _k_eq_p2 | 1.222178 .2361656 5.18 0.000 .7592315 1.685124 _k_eq_p3 | 1.261121 .2901196 4.35 0.000 .6924105 1.829831 _k_eq_p4 | 1.365034 .345605 3.95 0.000 .6875584 2.042511 _k_eq_p5 | 1.631866 .402778 4.05 0.000 .8423159 2.421416 _k_eq_p6 | 1.596214 .4556476 3.50 0.000 .7030261 2.489403 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, overlay(trend) . . /* > *Overlay trend plot fails because suboption "saveov" was not specified > xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3, method(gmm)) > xteventplot, overlay(trend) > */ . . * Overlay static plot . xtevent y eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, overlay(static) Estimating static model... Using options panelvar and timevar from xtset option static specified. Estimating static model Plotting options ignored No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(10, 7990) = 439.29 Prob > F = 0.0000 R-squared = 0.7542 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- eta | .2611098 .0093119 28.04 0.000 .2428561 .2793635 z | .9033452 .0666819 13.55 0.000 .7726312 1.034059 | t | 8 | .2844437 .0445517 6.38 0.000 .1971108 .3717765 9 | .462642 .0446181 10.37 0.000 .3751789 .5501051 10 | .6945258 .0447295 15.53 0.000 .6068444 .7822073 11 | .8423474 .044911 18.76 0.000 .7543101 .9303846 12 | 1.016765 .0450953 22.55 0.000 .9283665 1.105164 13 | 1.2599 .0453833 27.76 0.000 1.170937 1.348863 14 | 1.409257 .0456502 30.87 0.000 1.319771 1.498744 15 | 1.645633 .0458656 35.88 0.000 1.555724 1.735541 | _cons | 1.384714 .0317884 43.56 0.000 1.3224 1.447027 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7990) = 10.334 Prob > F = 0.000 . . * Test graphic options . gen y2 = y - z . xtevent y2 eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 156.66 Prob > F = 0.0000 R-squared = 0.7090 Adj R-squared = 0.6718 Root MSE = 0.9954 ------------------------------------------------------------------------------ y2 | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | -.0107683 .1045981 -0.10 0.918 -.2158079 .1942714 _k_eq_p1 | -.0978807 .1058732 -0.92 0.355 -.3054199 .1096585 _k_eq_p2 | -.002144 .1091899 -0.02 0.984 -.2161848 .2118968 _k_eq_p3 | -.0379753 .114047 -0.33 0.739 -.2615371 .1855866 _k_eq_p4 | -.0088354 .1189692 -0.07 0.941 -.2420463 .2243754 _k_eq_p5 | .1832222 .1269706 1.44 0.149 -.0656733 .4321176 _k_eq_p6 | .0727966 .1182986 0.62 0.538 -.1590996 .3046928 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, smplotopts(lcolor(green)) smpath(line) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 21.0260698 Order 0 Wald value 12.4887323 . xteventplot, ciplotopts(lcolor(green)) . xteventplot, suptciplotopts(lcolor(green)) . xteventplot, scatterplotopts(mcolor(green)) . xteventplot, overlay(static) staticovplotopts(lcolor(red)) Estimating static model... Using options panelvar and timevar from xtset option static specified. Estimating static model Plotting options ignored No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(10, 7990) = 327.96 Prob > F = 0.0000 R-squared = 0.7086 Adj R-squared = 0.6719 Root MSE = 0.9954 ------------------------------------------------------------------------------ y2 | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- eta | .2611098 .0093119 28.04 0.000 .2428561 .2793635 z | -.0966548 .0666819 -1.45 0.147 -.2273688 .0340591 | t | 8 | .2844437 .0445517 6.38 0.000 .1971108 .3717765 9 | .462642 .0446181 10.37 0.000 .3751789 .5501051 10 | .6945258 .0447295 15.53 0.000 .6068444 .7822073 11 | .8423474 .044911 18.76 0.000 .7543101 .9303846 12 | 1.016765 .0450953 22.55 0.000 .9283665 1.105164 13 | 1.2599 .0453833 27.76 0.000 1.170937 1.348863 14 | 1.409257 .0456502 30.87 0.000 1.319771 1.498744 15 | 1.645633 .0458656 35.88 0.000 1.555724 1.735541 | _cons | 1.384714 .0317884 43.56 0.000 1.3224 1.447027 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7990) = 10.334 Prob > F = 0.000 . . xtevent y2 eta, policyvar(z) timevar(t) window(5) trend(-3, saveov) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 156.66 Prob > F = 0.0000 R-squared = 0.7090 Adj R-squared = 0.6718 Root MSE = 0.9954 ------------------------------------------------------------------------------ y2 | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.3045795 .235951 -1.29 0.197 -.7671052 .1579461 _k_eq_m5 | -.1339416 .1179329 -1.14 0.256 -.3651209 .0972377 _k_eq_m4 | -.1231248 .1503292 -0.82 0.413 -.4178093 .1715598 _k_eq_m3 | .0002913 .1117368 0.00 0.998 -.2187421 .2193246 _k_eq_m2 | -.0243985 .0930362 -0.26 0.793 -.2067737 .1579767 _k_eq_p0 | .0640057 .1386137 0.46 0.644 -.2077133 .3357247 _k_eq_p1 | .0516673 .1846966 0.28 0.780 -.3103863 .4137208 _k_eq_p2 | .2221779 .2361656 0.94 0.347 -.2407685 .6851243 _k_eq_p3 | .2611206 .2901196 0.90 0.368 -.3075895 .8298308 _k_eq_p4 | .3650344 .345605 1.06 0.291 -.3124416 1.042511 _k_eq_p5 | .631866 .402778 1.57 0.117 -.1576841 1.421416 _k_eq_p6 | .5962144 .4556476 1.31 0.191 -.2969739 1.489403 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, overlay(trend) trendplotopts(lcolor(red)) . xtevent y eta, policyvar(z) proxy(x) window(5) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2538 min = 9 Between = 0.4789 avg = 9.0 Overall = 0.3968 max = 9 Wald chi2(21) = 47985.01 corr(u_i, Xb) = -0.0138 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | -.1891729 .4282553 -0.44 0.659 -1.028538 .6501921 eta | .4553417 .4393966 1.04 0.300 -.4058599 1.316543 _k_eq_m6 | .006805 .1269478 0.05 0.957 -.2420081 .2556182 _k_eq_m5 | .115823 .1221515 0.95 0.343 -.1235894 .3552355 _k_eq_m4 | .0975308 .1178861 0.83 0.408 -.1335217 .3285833 _k_eq_m3 | .0545602 .1865571 0.29 0.770 -.311085 .4202055 _k_eq_p0 | .9472992 .1085393 8.73 0.000 .7345662 1.160032 _k_eq_p1 | .8929201 .1062188 8.41 0.000 .6847352 1.101105 _k_eq_p2 | 1.000582 .1202635 8.32 0.000 .7648698 1.236294 _k_eq_p3 | .9718776 .1332396 7.29 0.000 .7107328 1.233022 _k_eq_p4 | 1.007802 .146495 6.88 0.000 .7206766 1.294926 _k_eq_p5 | 1.162446 .1281236 9.07 0.000 .9113283 1.413564 _k_eq_p6 | 1.084567 .1392478 7.79 0.000 .8116461 1.357488 | t | 8 | .2833069 .0480274 5.90 0.000 .1891749 .3774389 9 | .4653898 .0495002 9.40 0.000 .3683713 .5624084 10 | .665972 .0715352 9.31 0.000 .5257657 .8061784 11 | .8219499 .0577258 14.24 0.000 .7088094 .9350903 12 | .9853908 .0710185 13.88 0.000 .8461971 1.124584 13 | 1.252472 .0525292 23.84 0.000 1.149517 1.355428 14 | 1.377356 .0658765 20.91 0.000 1.24824 1.506471 15 | 1.609044 .0690944 23.29 0.000 1.473622 1.744467 | _cons | 1.378174 .1250455 11.02 0.000 1.13309 1.623259 -------------+---------------------------------------------------------------- sigma_u | 1.0750775 sigma_e | 1.0712008 rho | .50180624 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7979) = 8.91 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: eta _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xteventplot, overlay(iv) scatterplotopts(mcolor(green red)) . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, textboxoption(color(blue) size(large)) . drop y2 . . ******** Repeated cross-sectional data . use "small_repeated_cross_sectional_example31.dta", clear . xtset, clear . *OLS, impute and trend adjustment . xtevent y, panelvar(state) t(t) policyvar(z) window(5) trend(-3, method(ols)) impute(instag) repeatedcs Option repeatedcs was specified. Using state as the panel variable and t as the time variable. No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: state No. of categories = 46 F(30, 19924) = 501.73 Prob > F = 0.0000 R-squared = 0.4891 Adj R-squared = 0.4872 Root MSE = 1.5321 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.9572861 .1506114 -6.36 0.000 -1.252497 -.6620752 _k_eq_m5 | .0630063 .2266954 0.28 0.781 -.3813356 .5073482 _k_eq_m4 | .0204146 .1677208 0.12 0.903 -.3083321 .3491613 _k_eq_p0 | 1.354622 .1691528 8.01 0.000 1.023068 1.686175 _k_eq_p1 | 1.309062 .2265444 5.78 0.000 .8650158 1.753107 _k_eq_p2 | 1.05276 .2851788 3.69 0.000 .4937856 1.611734 _k_eq_p3 | .8609978 .3488805 2.47 0.014 .177163 1.544833 _k_eq_p4 | .7594336 .4160377 1.83 0.068 -.0560348 1.574902 _k_eq_p5 | .7364398 .4791461 1.54 0.124 -.2027265 1.675606 _k_eq_p6 | 1.480669 .1536515 9.64 0.000 1.1795 1.781839 | t | 2 | .1605088 .0685599 2.34 0.019 .0261257 .2948919 3 | .347211 .0687225 5.05 0.000 .2125092 .4819128 4 | .4714624 .0697707 6.76 0.000 .334706 .6082188 5 | .696866 .0692968 10.06 0.000 .5610385 .8326935 6 | .8783032 .0695551 12.63 0.000 .7419694 1.014637 7 | .9886194 .069542 14.22 0.000 .8523113 1.124928 8 | 1.067171 .068226 15.64 0.000 .9334419 1.200899 9 | 1.401201 .0690535 20.29 0.000 1.26585 1.536551 10 | 1.52225 .0700112 21.74 0.000 1.385022 1.659478 11 | 1.680582 .0689167 24.39 0.000 1.5455 1.815664 12 | 1.915238 .0697235 27.47 0.000 1.778574 2.051902 13 | 2.041331 .0708033 28.83 0.000 1.90255 2.180111 14 | 2.261005 .07105 31.82 0.000 2.121741 2.400269 15 | 2.526357 .0710457 35.56 0.000 2.387101 2.665612 16 | 2.602506 .070027 37.16 0.000 2.465248 2.739765 17 | 2.766492 .0706359 39.17 0.000 2.62804 2.904944 18 | 2.983379 .071517 41.72 0.000 2.843199 3.123558 19 | 3.22391 .0714606 45.11 0.000 3.083842 3.363979 20 | 3.332237 .0716124 46.53 0.000 3.19187 3.472603 | _ttrend | .1456503 .0662629 2.20 0.028 .0157695 .2755311 _cons | 1.207149 .1580242 7.64 0.000 .8974083 1.516889 ------------------------------------------------------------------------------ F test of absorbed indicators: F(45, 19924) = 2.630 Prob > F = 0.000 . xteventplot . *IV . xtevent y, panelvar(state) t(t) policyvar(z) window(5) impute(stag) proxy(x) repeatedcs Option repeatedcs was specified. Using state as the panel variable and t as the time variable. Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Using reghdfe for fixed effects estimation with repeated cross-sectional data. (MWFE estimator converged in 4 iterations) IV (2SLS) estimation -------------------- Estimates efficient for homoskedasticity only Statistics consistent for homoskedasticity only Number of obs = 19005 F( 12, 18929) = 123.84 Prob > F = 0.0000 Total (centered) SS = 47851.7849 Centered R2 = 0.0360 Total (uncentered) SS = 47851.7849 Uncentered R2 = 0.0360 Residual SS = 46127.15415 Root MSE = 1.561 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | .3083501 .2044421 1.51 0.132 -.0923747 .7090749 _k_eq_m6 | .2492553 .6515091 0.38 0.702 -1.027761 1.526271 _k_eq_m5 | .2050635 .441973 0.46 0.643 -.6612431 1.07137 _k_eq_m4 | .22665 .3887728 0.58 0.560 -.5353795 .9886795 _k_eq_m3 | .0179494 .1799183 0.10 0.921 -.3347065 .3706052 _k_eq_p0 | .9611815 .4237939 2.27 0.023 .1305076 1.791855 _k_eq_p1 | 1.079407 .4377671 2.47 0.014 .2213449 1.93747 _k_eq_p2 | .8585338 .4793251 1.79 0.073 -.0809862 1.798054 _k_eq_p3 | .7450697 .4936962 1.51 0.131 -.222619 1.712758 _k_eq_p4 | .8918057 .4783669 1.86 0.062 -.0458362 1.829448 _k_eq_p5 | .8355085 .5809125 1.44 0.150 -.303132 1.974149 _k_eq_p6 | .8220337 .5797774 1.42 0.156 -.3143817 1.958449 ------------------------------------------------------------------------------ Underidentification test (Anderson canon. corr. LM statistic): 6.684 Chi-sq(1) P-val = 0.0097 ------------------------------------------------------------------------------ Weak identification test (Cragg-Donald Wald F statistic): 6.660 Stock-Yogo weak ID test critical values: 10% maximal IV size 16.38 15% maximal IV size 8.96 20% maximal IV size 6.66 25% maximal IV size 5.53 Source: Stock-Yogo (2005). Reproduced by permission. ------------------------------------------------------------------------------ Sargan statistic (overidentification test of all instruments): 0.000 (equation exactly identified) ------------------------------------------------------------------------------ Instrumented: x Included instruments: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 Excluded instruments: _fd1__00000N Partialled-out: _cons nb: total SS, model F and R2s are after partialling-out; any small-sample adjustments include partialled-out variables in regressor count K ------------------------------------------------------------------------------ Absorbed degrees of freedom: -----------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | -------------+---------------------------------------| state | 46 0 46 | t | 19 1 18 | -----------------------------------------------------+ . xteventplot . xteventplot, overlay(iv) . . *static ols . xtevent y, panelvar(state) t(t) policyvar(z) impute(stag) static repeatedcs Option repeatedcs was specified. Using state as the panel variable and t as the time variable. option static specified. Estimating static model Plotting options ignored No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: state No. of categories = 46 F(20, 19934) = 744.21 Prob > F = 0.0000 R-squared = 0.4866 Adj R-squared = 0.4849 Root MSE = 1.5356 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- z_imputed | 2.023979 .0503121 40.23 0.000 1.925364 2.122595 | t | 2 | .1676187 .0687028 2.44 0.015 .0329555 .3022819 3 | .3802633 .0687517 5.53 0.000 .2455042 .5150223 4 | .5078863 .0698064 7.28 0.000 .3710599 .6447127 5 | .7472692 .0692284 10.79 0.000 .6115757 .8829627 6 | .9364629 .0694271 13.49 0.000 .80038 1.072546 7 | 1.057862 .0692967 15.27 0.000 .9220348 1.193689 8 | 1.136833 .0679366 16.73 0.000 1.003672 1.269995 9 | 1.46715 .0687868 21.33 0.000 1.332322 1.601977 10 | 1.602228 .0696061 23.02 0.000 1.465794 1.738662 11 | 1.763134 .0684208 25.77 0.000 1.629024 1.897245 12 | 2.003192 .0692596 28.92 0.000 1.867437 2.138947 13 | 2.14208 .0701629 30.53 0.000 2.004555 2.279605 14 | 2.363576 .0703703 33.59 0.000 2.225645 2.501508 15 | 2.632911 .0702403 37.48 0.000 2.495234 2.770588 16 | 2.710091 .0691976 39.16 0.000 2.574458 2.845724 17 | 2.871419 .0697862 41.15 0.000 2.734632 3.008205 18 | 3.088504 .0705883 43.75 0.000 2.950145 3.226863 19 | 3.33021 .0704581 47.27 0.000 3.192106 3.468314 20 | 3.433454 .0706181 48.62 0.000 3.295037 3.571872 | _cons | .2586998 .0489467 5.29 0.000 .1627602 .3546395 ------------------------------------------------------------------------------ F test of absorbed indicators: F(45, 19934) = 6.734 Prob > F = 0.000 . *static IV . xtevent y, panelvar(state) t(t) policyvar(z) impute(stag) proxy(x) static repeatedcs Option repeatedcs was specified. Using state as the panel variable and t as the time variable. option static specified. Estimating static model Plotting options ignored Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. Fixed-effects (within) IV regression Number of obs = 19,005 Group variable: state Number of groups = 46 R-squared: Obs per group: Within = 0.4256 min = 249 Between = 0.9838 avg = 413.2 Overall = 0.4862 max = 486 Wald chi2(20) = 51510.98 corr(u_i, Xb) = -0.0229 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .2382911 .0391435 6.09 0.000 .1615713 .3150108 z_imputed | 1.025171 .1676194 6.12 0.000 .6966435 1.353699 | t | 2 | .2133027 .0677779 3.15 0.002 .0804605 .3461448 3 | .4141609 .0676509 6.12 0.000 .2815676 .5467542 4 | .5769161 .0693839 8.31 0.000 .4409263 .712906 5 | .8112636 .0687282 11.80 0.000 .6765588 .9459684 6 | .9627499 .0682077 14.11 0.000 .8290653 1.096435 7 | 1.123886 .068788 16.34 0.000 .9890638 1.258708 8 | 1.270686 .0700548 18.14 0.000 1.133381 1.407991 9 | 1.595758 .0705044 22.63 0.000 1.457572 1.733944 10 | 1.740506 .0718068 24.24 0.000 1.599768 1.881245 11 | 1.935654 .0725515 26.68 0.000 1.793455 2.077852 12 | 2.21381 .0759385 29.15 0.000 2.064973 2.362647 13 | 2.351229 .0765389 30.72 0.000 2.201215 2.501242 14 | 2.572205 .0766801 33.54 0.000 2.421914 2.722495 15 | 2.857614 .077698 36.78 0.000 2.705329 3.0099 16 | 2.942488 .0773749 38.03 0.000 2.790836 3.09414 17 | 3.163412 .0829461 38.14 0.000 3.00084 3.325983 18 | 3.343739 .0804814 41.55 0.000 3.185999 3.50148 19 | 3.648547 .0859368 42.46 0.000 3.480114 3.81698 | _cons | .2399397 .0480963 4.99 0.000 .1456726 .3342067 -------------+---------------------------------------------------------------- sigma_u | .08896771 sigma_e | 1.50587 rho | .00347838 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(45,18939) = 1.30 Prob > F = 0.0837 ------------------------------------------------------------------------------ Endogenous: x Exogenous: z_imputed 2.t 3.t 4.t 5.t 6.t 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t 17.t 18.t 19.t _fd1z_imputed . . *get unit time effects . get_unit_time_effects y u eta, panelvar(state) timevar(t) saving("effect_file.dta", replace) Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: unittimeinteraction No. of categories = 920 F(2, 19078) = 1504.21 Prob > F = 0.0000 R-squared = 0.5781 Adj R-squared = 0.5577 Root MSE = 1.4229 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- u | -.001644 .0051352 -0.32 0.749 -.0117095 .0084214 eta | .2550361 .0046498 54.85 0.000 .2459221 .2641501 _cons | 2.251179 .0100644 223.68 0.000 2.231452 2.270906 ------------------------------------------------------------------------------ F test of absorbed indicators: F(919, 19078) = 18.418 Prob > F = 0.000 file effect_file.dta saved . . *get_unit_time_effects + xtevent . get_unit_time_effects y u eta, panelvar(state) timevar(t) saving("effect_file.dta", replace) Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: unittimeinteraction No. of categories = 920 F(2, 19078) = 1504.21 Prob > F = 0.0000 R-squared = 0.5781 Adj R-squared = 0.5577 Root MSE = 1.4229 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- u | -.001644 .0051352 -0.32 0.749 -.0117095 .0084214 eta | .2550361 .0046498 54.85 0.000 .2459221 .2641501 _cons | 2.251179 .0100644 223.68 0.000 2.231452 2.270906 ------------------------------------------------------------------------------ F test of absorbed indicators: F(919, 19078) = 18.418 Prob > F = 0.000 file effect_file.dta saved . bysort state t (z): keep if _n==1 (19,080 observations deleted) . keep state t z . merge m:1 state t using "effect_file.dta" Result Number of obs ----------------------------------------- Not matched 0 Matched 920 (_merge==3) ----------------------------------------- . drop _merge . xtevent _unittimeeffects, panelvar(state) t(t) policyvar(z) window(5) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 414 Absorbed variable: state No. of categories = 46 F(20, 348) = 79.91 Prob > F = 0.0000 R-squared = 0.8504 Adj R-squared = 0.8225 Root MSE = 0.3233 ------------------------------------------------------------------------------ _unittimee~s | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .040263 .1525886 0.26 0.792 -.259849 .3403749 _k_eq_m5 | .19858 .1646535 1.21 0.229 -.1252611 .5224211 _k_eq_m4 | .224199 .1603164 1.40 0.163 -.091112 .5395099 _k_eq_m3 | .2520825 .1566749 1.61 0.109 -.0560663 .5602312 _k_eq_m2 | .1545788 .1539657 1.00 0.316 -.1482416 .4573991 _k_eq_p0 | 1.144426 .1539818 7.43 0.000 .8415734 1.447278 _k_eq_p1 | 1.220535 .1567996 7.78 0.000 .9121414 1.52893 _k_eq_p2 | 1.071692 .1607148 6.67 0.000 .7555971 1.387786 _k_eq_p3 | 1.102224 .1685971 6.54 0.000 .7706266 1.433822 _k_eq_p4 | 1.269389 .1780274 7.13 0.000 .9192437 1.619534 _k_eq_p5 | 1.113971 .1894849 5.88 0.000 .7412915 1.486651 _k_eq_p6 | 1.33035 .1752273 7.59 0.000 .9857118 1.674987 | t | 8 | .1635674 .0675319 2.42 0.016 .0307455 .2963894 9 | .4627374 .0678297 6.82 0.000 .3293296 .5961452 10 | .6030953 .0683276 8.83 0.000 .4687083 .7374823 11 | .7896641 .0690418 11.44 0.000 .6538725 .9254558 12 | 1.071347 .0700234 15.30 0.000 .9336251 1.20907 13 | 1.211792 .0712616 17.00 0.000 1.071634 1.351949 14 | 1.42655 .0727431 19.61 0.000 1.283479 1.569622 15 | 1.692904 .0744535 22.74 0.000 1.546468 1.839339 | _cons | -.9467688 .1473088 -6.43 0.000 -1.236496 -.6570413 ------------------------------------------------------------------------------ F test of absorbed indicators: F(45, 348) = 1.154 Prob > F = 0.240 . xteventplot . . *------------------------ 2.2: Replicate 2b and test basic funcionality without controls --------------------- > ------------- . . * load panel dataset . use "example31.dta", clear . . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . . * Testing xtset options . . xtevent y , policyvar(z) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xtevent y , policyvar(z) panelvar(i) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xtevent y , policyvar(z) timevar(t) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . . . /* Must fail > xtevent y eta, policyvar(z) panelvar(z) window(5) > xtevent y eta, policyvar(z) timevar(z) window(5) > */ . . * Testing noci, nosupt, nozeroline, nonormlabel . xtevent y , policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xteventplot, noci option noci has been specified. Confidence intervals won't be displayed . xteventplot, nosupt option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated . xteventplot, nozeroline option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, nonormlabel option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . . * Test if/in . xtevent y if i<100, panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 891 Absorbed variable: i No. of categories = 99 F(20, 772) = 14.33 Prob > F = 0.0000 R-squared = 0.7459 Adj R-squared = 0.7071 Root MSE = 1.0907 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.289482 .3523182 -3.66 0.000 -1.981097 -.5978667 _k_eq_m5 | -1.457549 .4044194 -3.60 0.000 -2.251442 -.6636573 _k_eq_m4 | -.6645771 .3655596 -1.82 0.069 -1.382186 .0530317 _k_eq_m3 | -.506135 .3529993 -1.43 0.152 -1.199087 .1868172 _k_eq_m2 | -.4994538 .3582824 -1.39 0.164 -1.202777 .2038696 _k_eq_p0 | .9820397 .3489801 2.81 0.005 .2969772 1.667102 _k_eq_p1 | 1.433219 .3564462 4.02 0.000 .7335001 2.132937 _k_eq_p2 | 1.323441 .366288 3.61 0.000 .6044023 2.042479 _k_eq_p3 | 1.506092 .3756106 4.01 0.000 .7687526 2.243431 _k_eq_p4 | 1.641353 .3857475 4.25 0.000 .884115 2.398592 _k_eq_p5 | 1.453211 .4352421 3.34 0.001 .5988127 2.307609 _k_eq_p6 | 1.871759 .3911511 4.79 0.000 1.103913 2.639605 | t | 8 | .1227486 .1561946 0.79 0.432 -.1838679 .4293651 9 | .2654292 .1572615 1.69 0.092 -.0432817 .5741401 10 | .612676 .1576497 3.89 0.000 .3032032 .9221489 11 | .6502904 .1596035 4.07 0.000 .3369821 .9635987 12 | .5285836 .1623955 3.25 0.001 .2097945 .8473728 13 | .7592658 .1654854 4.59 0.000 .4344112 1.08412 14 | .9956726 .1684167 5.91 0.000 .6650636 1.326282 15 | 1.125275 .1710936 6.58 0.000 .7894113 1.461139 | _cons | 2.459318 .3332129 7.38 0.000 1.805207 3.113429 ------------------------------------------------------------------------------ F test of absorbed indicators: F(98, 772) = 11.892 Prob > F = 0.000 . xtevent y in 1/600 , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 270 Absorbed variable: i No. of categories = 30 F(20, 220) = 5.07 Prob > F = 0.0000 R-squared = 0.7506 Adj R-squared = 0.6950 Root MSE = 1.0124 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.818828 .6029989 -3.02 0.003 -3.007222 -.6304343 _k_eq_m5 | -2.110746 .7352303 -2.87 0.004 -3.559742 -.6617499 _k_eq_m4 | -1.61051 .5908942 -2.73 0.007 -2.775048 -.4459727 _k_eq_m3 | -1.10703 .6003189 -1.84 0.067 -2.290142 .0760817 _k_eq_m2 | -.6970733 .5976955 -1.17 0.245 -1.875015 .4808683 _k_eq_p0 | -.5019889 .6143602 -0.82 0.415 -1.712773 .7087955 _k_eq_p1 | .7226575 .6161001 1.17 0.242 -.4915559 1.936871 _k_eq_p2 | .4647375 .6486201 0.72 0.474 -.8135666 1.743042 _k_eq_p3 | .9350326 .6575181 1.42 0.156 -.3608078 2.230873 _k_eq_p4 | -.6014809 .6597441 -0.91 0.363 -1.901708 .6987465 _k_eq_p5 | -.1799007 .9219644 -0.20 0.845 -1.996913 1.637112 _k_eq_p6 | -.5189833 .7474141 -0.69 0.488 -1.991991 .9540246 | t | 8 | -.0653896 .2681927 -0.24 0.808 -.5939452 .463166 9 | .0106017 .2699834 0.04 0.969 -.5214831 .5426865 10 | .2101263 .2670963 0.79 0.432 -.3162686 .7365212 11 | .4965991 .2716661 1.83 0.069 -.038802 1.032 12 | .4595808 .2789724 1.65 0.101 -.0902195 1.009381 13 | .7809989 .2810378 2.78 0.006 .227128 1.33487 14 | .9348711 .2869291 3.26 0.001 .3693895 1.500353 15 | 1.108876 .2887667 3.84 0.000 .5397727 1.677979 | _cons | 2.925228 .5815295 5.03 0.000 1.779147 4.07131 ------------------------------------------------------------------------------ F test of absorbed indicators: F(29, 220) = 11.351 Prob > F = 0.000 . xtevent y in 1/600 if i<30 , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 261 Absorbed variable: i No. of categories = 29 F(20, 212) = 4.66 Prob > F = 0.0000 R-squared = 0.7373 Adj R-squared = 0.6778 Root MSE = 1.0141 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -2.088575 .7031077 -2.97 0.003 -3.474553 -.7025968 _k_eq_m5 | -2.375481 .8565452 -2.77 0.006 -4.063918 -.687045 _k_eq_m4 | -1.635169 .6502745 -2.51 0.013 -2.917001 -.3533367 _k_eq_m3 | -1.017041 .6672765 -1.52 0.129 -2.332388 .2983062 _k_eq_m2 | -1.129732 .6667367 -1.69 0.092 -2.444015 .1845506 _k_eq_p0 | -.5797828 .6415577 -0.90 0.367 -1.844432 .6848667 _k_eq_p1 | .5881249 .6454666 0.91 0.363 -.6842298 1.86048 _k_eq_p2 | .3605432 .6687536 0.54 0.590 -.9577153 1.678802 _k_eq_p3 | .9098129 .6784639 1.34 0.181 -.4275866 2.247212 _k_eq_p4 | -.7114416 .686879 -1.04 0.301 -2.065429 .6425461 _k_eq_p5 | -.2951956 .9356421 -0.32 0.753 -2.139549 1.549158 _k_eq_p6 | -.5840895 .7664022 -0.76 0.447 -2.094835 .9266556 | t | 8 | -.0538665 .2748302 -0.20 0.845 -.5956165 .4878834 9 | .0872088 .2771097 0.31 0.753 -.4590345 .6334521 10 | .1673084 .2733729 0.61 0.541 -.3715689 .7061857 11 | .5000997 .2764636 1.81 0.072 -.0448701 1.045069 12 | .5148428 .2867046 1.80 0.074 -.0503142 1.08 13 | .819212 .2853343 2.87 0.005 .2567562 1.381668 14 | .8658287 .2916305 2.97 0.003 .2909616 1.440696 15 | 1.148375 .2931289 3.92 0.000 .5705542 1.726196 | _cons | 3.059257 .6653599 4.60 0.000 1.747689 4.370826 ------------------------------------------------------------------------------ F test of absorbed indicators: F(28, 212) = 10.279 Prob > F = 0.000 . . * Test nofe, note . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) nofe plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(20, 8979) = 223.83 Model | 10714.0449 20 535.702247 Prob > F = 0.0000 Residual | 21489.5662 8,979 2.39331398 R-squared = 0.3327 -------------+---------------------------------- Adj R-squared = 0.3312 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.547 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.259692 .115011 -10.95 0.000 -1.48514 -1.034244 _k_eq_m5 | -.377586 .1674145 -2.26 0.024 -.7057565 -.0494154 _k_eq_m4 | -.3920709 .1657321 -2.37 0.018 -.7169437 -.0671981 _k_eq_m3 | -.1933442 .1627174 -1.19 0.235 -.5123075 .125619 _k_eq_m2 | -.1875605 .1622523 -1.16 0.248 -.5056121 .1304911 _k_eq_p0 | 1.312202 .159627 8.22 0.000 .9992967 1.625107 _k_eq_p1 | 1.217026 .1590039 7.65 0.000 .9053417 1.52871 _k_eq_p2 | 1.324566 .1604923 8.25 0.000 1.009965 1.639168 _k_eq_p3 | 1.27211 .163783 7.77 0.000 .951058 1.593162 _k_eq_p4 | 1.249694 .1681847 7.43 0.000 .9200139 1.579375 _k_eq_p5 | 1.532354 .1760626 8.70 0.000 1.187231 1.877477 _k_eq_p6 | 1.355879 .1413837 9.59 0.000 1.078735 1.633024 | t | 8 | .2515293 .0692194 3.63 0.000 .1158436 .3872151 9 | .3986636 .0692411 5.76 0.000 .2629352 .5343919 10 | .6083407 .0692928 8.78 0.000 .4725111 .7441703 11 | .7191093 .0693718 10.37 0.000 .5831247 .8550939 12 | .8605161 .0694641 12.39 0.000 .7243507 .9966816 13 | 1.060749 .0696039 15.24 0.000 .9243096 1.197189 14 | 1.197118 .0698006 17.15 0.000 1.060293 1.333943 15 | 1.423055 .0700362 20.32 0.000 1.285768 1.560342 | _cons | 2.412556 .1217971 19.81 0.000 2.173806 2.651306 ------------------------------------------------------------------------------ . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) nofe note plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(12, 8987) = 294.16 Model | 9081.69274 12 756.807728 Prob > F = 0.0000 Residual | 23121.9184 8,987 2.57281834 R-squared = 0.2820 -------------+---------------------------------- Adj R-squared = 0.2810 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.604 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.225151 .1192195 -10.28 0.000 -1.458848 -.9914536 _k_eq_m5 | -.3710988 .1735397 -2.14 0.033 -.7112761 -.0309215 _k_eq_m4 | -.4051251 .1718146 -2.36 0.018 -.741921 -.0683292 _k_eq_m3 | -.1753739 .1686732 -1.04 0.298 -.5060118 .155264 _k_eq_m2 | -.1544533 .1681856 -0.92 0.358 -.4841354 .1752288 _k_eq_p0 | 1.356497 .1654494 8.20 0.000 1.032178 1.680816 _k_eq_p1 | 1.280432 .1648121 7.77 0.000 .9573628 1.603501 _k_eq_p2 | 1.422208 .1663271 8.55 0.000 1.096168 1.748247 _k_eq_p3 | 1.403454 .1696779 8.27 0.000 1.070847 1.736061 _k_eq_p4 | 1.459003 .1741401 8.38 0.000 1.117649 1.800358 _k_eq_p5 | 1.819137 .1821451 9.99 0.000 1.462091 2.176183 _k_eq_p6 | 1.82939 .1452591 12.59 0.000 1.544649 2.114131 _cons | 3.076781 .117611 26.16 0.000 2.846237 3.307326 ------------------------------------------------------------------------------ . . * Test smoothest line . xtevent y , panelvar(i) timevar(t) policyvar(z) window(3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(20, 11980) = 472.86 Prob > F = 0.0000 R-squared = 0.7371 Adj R-squared = 0.7148 Root MSE = 1.0644 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | -.5447307 .0778204 -7.00 0.000 -.6972713 -.39219 _k_eq_m3 | -.1505628 .0950092 -1.58 0.113 -.3367962 .0356706 _k_eq_m2 | -.0631956 .0944157 -0.67 0.503 -.2482657 .1218745 _k_eq_p0 | 1.461537 .0937663 15.59 0.000 1.27774 1.645334 _k_eq_p1 | 1.432239 .0952458 15.04 0.000 1.245542 1.618936 _k_eq_p2 | 1.520175 .0967991 15.70 0.000 1.330434 1.709917 _k_eq_p3 | 1.542299 .0992803 15.53 0.000 1.347693 1.736905 _k_eq_p4 | 1.653742 .081142 20.38 0.000 1.494691 1.812793 | t | 6 | .1528999 .0476243 3.21 0.001 .0595486 .2462512 7 | .3046591 .0476683 6.39 0.000 .2112215 .3980966 8 | .5658986 .0477605 11.85 0.000 .4722802 .659517 9 | .7226899 .0478856 15.09 0.000 .6288264 .8165535 10 | .9382351 .0480604 19.52 0.000 .8440288 1.032441 11 | 1.051662 .048284 21.78 0.000 .957018 1.146307 12 | 1.200805 .0485412 24.74 0.000 1.105657 1.295954 13 | 1.410551 .04881 28.90 0.000 1.314876 1.506227 14 | 1.544048 .0491468 31.42 0.000 1.447713 1.640384 15 | 1.776522 .0495137 35.88 0.000 1.679467 1.873577 16 | 1.966509 .0498436 39.45 0.000 1.868808 2.064211 17 | 2.164314 .0502499 43.07 0.000 2.065816 2.262812 | _cons | 1.508062 .0820664 18.38 0.000 1.347199 1.668925 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11980) = 15.926 Prob > F = 0.000 . xteventplot, smpath(scatter) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 15.5073131 Order 0 Wald value 1464.06384 Order 1 Wald value 269.975294 Order 2 Wald value 193.714313 Order 3 Wald value 137.593424 Order 4 Wald value 128.489737 Order 5 Wald value 83.1331862 Order 6 Wald value 58.1316458 Order 7 Wald value 48.5284897 Order 8 Wald value 8.0986e-11 (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 (switching technique to bfgs) Hessian could not be updated -- Hessian is unstable (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 (switching technique to bfgs) Hessian could not be updated -- Hessian is unstable The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 9. See mf_optimize##r_error to see what that means. Error code = 9. See mf_optimize##r_error to see what that means. . xteventplot, smpath(line) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 15.5073131 Order 0 Wald value 1464.06384 Order 1 Wald value 269.975294 Order 2 Wald value 193.714313 Order 3 Wald value 137.593424 Order 4 Wald value 128.489737 Order 5 Wald value 83.1331862 Order 6 Wald value 58.1316458 Order 7 Wald value 48.5284897 Order 8 Wald value 8.0986e-11 (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 (switching technique to bfgs) Hessian could not be updated -- Hessian is unstable (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 (switching technique to bfgs) Hessian could not be updated -- Hessian is unstable The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 9. See mf_optimize##r_error to see what that means. Error code = 9. See mf_optimize##r_error to see what that means. . /* maximum order allowed is 10 > xteventplot, smpath(line, maxorder(25)) > xteventplot, smpath(line, maxorder(30)) > */ . xteventplot, smpath(line, technique("nr 10 bfgs 10")) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 15.5073131 Order 0 Wald value 1464.06384 Order 1 Wald value 269.975294 Order 2 Wald value 193.714313 Order 3 Wald value 137.593424 Order 4 Wald value 128.489737 Order 5 Wald value 83.1331862 Order 6 Wald value 58.1316458 Order 7 Wald value 48.5284897 Order 8 Wald value 8.0986e-11 (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 Iteration 5: f(p) = 4.838e+08 (not concave) Iteration 6: f(p) = 4.838e+08 (not concave) Iteration 7: f(p) = 4.838e+08 (not concave) Iteration 8: f(p) = 4.837e+08 (not concave) Iteration 9: f(p) = 4.835e+08 (not concave) (switching technique to bfgs) Iteration 10: f(p) = 4.831e+08 Iteration 11: f(p) = 4.831e+08 (backed up) Iteration 12: f(p) = 4.831e+08 Iteration 13: f(p) = 4.831e+08 Iteration 14: f(p) = 4.831e+08 Iteration 15: f(p) = 4.831e+08 Iteration 16: f(p) = 4.831e+08 Iteration 17: f(p) = 4.831e+08 (backed up) Iteration 18: f(p) = 4.831e+08 (backed up) Iteration 19: f(p) = 4.831e+08 (backed up) (switching technique to nr) Iteration 20: f(p) = 4.831e+08 (not concave) Iteration 21: f(p) = 4.830e+08 (not concave) Iteration 22: f(p) = 4.830e+08 (not concave) Iteration 23: f(p) = 4.830e+08 (not concave) Iteration 24: f(p) = 4.830e+08 (not concave) Iteration 25: f(p) = 4.830e+08 Hessian is not positive semidefinite (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 Hessian is not positive semidefinite The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 4. See mf_optimize##r_error to see what that means. Error code = 4. See mf_optimize##r_error to see what that means. . . . * Test more suptreps . . cap graph drop g1 . cap graph drop g2 . . xtevent y, panelvar(i) timevar(t) policyvar(z) window(3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(20, 11980) = 472.86 Prob > F = 0.0000 R-squared = 0.7371 Adj R-squared = 0.7148 Root MSE = 1.0644 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | -.5447307 .0778204 -7.00 0.000 -.6972713 -.39219 _k_eq_m3 | -.1505628 .0950092 -1.58 0.113 -.3367962 .0356706 _k_eq_m2 | -.0631956 .0944157 -0.67 0.503 -.2482657 .1218745 _k_eq_p0 | 1.461537 .0937663 15.59 0.000 1.27774 1.645334 _k_eq_p1 | 1.432239 .0952458 15.04 0.000 1.245542 1.618936 _k_eq_p2 | 1.520175 .0967991 15.70 0.000 1.330434 1.709917 _k_eq_p3 | 1.542299 .0992803 15.53 0.000 1.347693 1.736905 _k_eq_p4 | 1.653742 .081142 20.38 0.000 1.494691 1.812793 | t | 6 | .1528999 .0476243 3.21 0.001 .0595486 .2462512 7 | .3046591 .0476683 6.39 0.000 .2112215 .3980966 8 | .5658986 .0477605 11.85 0.000 .4722802 .659517 9 | .7226899 .0478856 15.09 0.000 .6288264 .8165535 10 | .9382351 .0480604 19.52 0.000 .8440288 1.032441 11 | 1.051662 .048284 21.78 0.000 .957018 1.146307 12 | 1.200805 .0485412 24.74 0.000 1.105657 1.295954 13 | 1.410551 .04881 28.90 0.000 1.314876 1.506227 14 | 1.544048 .0491468 31.42 0.000 1.447713 1.640384 15 | 1.776522 .0495137 35.88 0.000 1.679467 1.873577 16 | 1.966509 .0498436 39.45 0.000 1.868808 2.064211 17 | 2.164314 .0502499 43.07 0.000 2.065816 2.262812 | _cons | 1.508062 .0820664 18.38 0.000 1.347199 1.668925 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11980) = 15.926 Prob > F = 0.000 . xteventplot, suptreps(20) name(g1) . xteventplot, suptreps(1e6) name(g2) . . graph combine g1 g2, rows(1) . . graph drop g1 . graph drop g2 . . * Test savek . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) savek(a) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . des a_eq*, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_eq_m6 double %10.0g Event time <= - 6 a_eq_m5 double %10.0g Event-time = - 5 a_eq_m4 double %10.0g Event-time = - 4 a_eq_m3 double %10.0g Event-time = - 3 a_eq_m2 double %10.0g Event-time = - 2 a_eq_m1 double %10.0g Event-time = - 1 a_eq_p0 double %10.0g Event-time = + 0 a_eq_p1 double %10.0g Event-time = + 1 a_eq_p2 double %10.0g Event-time = + 2 a_eq_p3 double %10.0g Event-time = + 3 a_eq_p4 double %10.0g Event-time = + 4 a_eq_p5 double %10.0g Event-time = + 5 a_eq_p6 double %10.0g Event time >= + 6 . des a_evtime, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_evtime long %12.0g . drop a* . . * Test factor variables in varlist . cap gen pois=rpoisson(5) . xtevent y i.pois, panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(35, 7965) = 96.32 Prob > F = 0.0000 R-squared = 0.7323 Adj R-squared = 0.6976 Root MSE = 1.0403 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.7075193 .1117081 -6.33 0.000 -.9264964 -.4885422 _k_eq_m5 | -.3757666 .1215548 -3.09 0.002 -.6140459 -.1374873 _k_eq_m4 | -.3485074 .1170602 -2.98 0.003 -.5779761 -.1190387 _k_eq_m3 | -.2026023 .1126967 -1.80 0.072 -.4235174 .0183129 _k_eq_m2 | -.15888 .1105593 -1.44 0.151 -.3756052 .0578451 _k_eq_p0 | 1.395995 .108191 12.90 0.000 1.183913 1.608078 _k_eq_p1 | 1.341254 .1093576 12.26 0.000 1.126884 1.555623 _k_eq_p2 | 1.494259 .1125872 13.27 0.000 1.273558 1.714959 _k_eq_p3 | 1.514872 .1174639 12.90 0.000 1.284611 1.745132 _k_eq_p4 | 1.537892 .1226783 12.54 0.000 1.29741 1.778373 _k_eq_p5 | 1.800889 .1305733 13.79 0.000 1.544931 2.056847 _k_eq_p6 | 1.726527 .1211083 14.26 0.000 1.489123 1.963931 | pois | 1 | .0330783 .16056 0.21 0.837 -.2816612 .3478179 2 | .0479666 .1528993 0.31 0.754 -.2517561 .3476893 3 | .0525361 .1511425 0.35 0.728 -.2437428 .3488151 4 | -.0048456 .1504651 -0.03 0.974 -.2997965 .2901053 5 | -.0295213 .1503316 -0.20 0.844 -.3242105 .265168 6 | .0063968 .150959 0.04 0.966 -.2895224 .3023161 7 | .0083321 .1520987 0.05 0.956 -.2898211 .3064854 8 | .0179157 .1547431 0.12 0.908 -.2854213 .3212528 9 | -.003031 .1599744 -0.02 0.985 -.3166227 .3105607 10 | -.0780832 .1701363 -0.46 0.646 -.4115949 .2554285 11 | -.0910148 .1997751 -0.46 0.649 -.4826264 .3005968 12 | -.1831651 .2791805 -0.66 0.512 -.7304319 .3641017 13 | .1919443 .3001805 0.64 0.523 -.3964881 .7803766 14 | -.366863 .443484 -0.83 0.408 -1.236208 .5024818 21 | -.2326795 1.114011 -0.21 0.835 -2.416432 1.951073 | t | 8 | .2590145 .0466368 5.55 0.000 .1675942 .3504348 9 | .4125287 .0468144 8.81 0.000 .3207602 .5042973 10 | .6240548 .0471625 13.23 0.000 .5316038 .7165057 11 | .7361469 .0476231 15.46 0.000 .6427932 .8295006 12 | .8791754 .0482791 18.21 0.000 .7845356 .9738151 13 | 1.082764 .0490563 22.07 0.000 .9866004 1.178927 14 | 1.215207 .049901 24.35 0.000 1.117388 1.313026 15 | 1.443399 .0509011 28.36 0.000 1.343619 1.543178 | _cons | 1.939247 .1811673 10.70 0.000 1.584112 2.294382 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7965) = 11.871 Prob > F = 0.000 . cap drop pois . . * Test asymmetric window . xtevent y , panelvar(i) timevar(t) policyvar(z) window(-4 2) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(20, 11980) = 476.98 Prob > F = 0.0000 R-squared = 0.7303 Adj R-squared = 0.7074 Root MSE = 1.0599 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | -.6848987 .0795433 -8.61 0.000 -.8408165 -.528981 _k_eq_m4 | -.3113002 .0954834 -3.26 0.001 -.4984631 -.1241374 _k_eq_m3 | -.2220896 .0947314 -2.34 0.019 -.4077786 -.0364007 _k_eq_m2 | -.1095029 .0933718 -1.17 0.241 -.2925268 .0735209 _k_eq_p0 | 1.436959 .0946671 15.18 0.000 1.251396 1.622521 _k_eq_p1 | 1.40164 .0960797 14.59 0.000 1.213309 1.589972 _k_eq_p2 | 1.513379 .0984214 15.38 0.000 1.320457 1.706301 _k_eq_p3 | 1.599291 .0794432 20.13 0.000 1.443569 1.755012 | t | 5 | .2012946 .0474239 4.24 0.000 .108336 .2942531 6 | .3504001 .0474678 7.38 0.000 .2573556 .4434446 7 | .4984896 .0475596 10.48 0.000 .405265 .5917141 8 | .7586405 .0476841 15.91 0.000 .6651719 .8521092 9 | .9115261 .0478582 19.05 0.000 .8177161 1.005336 10 | 1.125765 .0480809 23.41 0.000 1.031518 1.220011 11 | 1.238251 .048337 25.62 0.000 1.143502 1.332999 12 | 1.387743 .0486046 28.55 0.000 1.29247 1.483016 13 | 1.593731 .04894 32.56 0.000 1.497801 1.689662 14 | 1.727023 .0493054 35.03 0.000 1.630377 1.82367 15 | 1.961141 .049634 39.51 0.000 1.86385 2.058431 16 | 2.147068 .0500385 42.91 0.000 2.048984 2.245152 | _cons | 1.430418 .0838426 17.06 0.000 1.266073 1.594763 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11980) = 15.713 Prob > F = 0.000 . . * Test normalizations . . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(-1) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(-2) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.5423631 .1068142 -5.08 0.000 -.7517468 -.3329794 _k_eq_m5 | -.2165538 .1188674 -1.82 0.069 -.4495649 .0164574 _k_eq_m4 | -.1924586 .115162 -1.67 0.095 -.4182061 .033289 _k_eq_m3 | -.0411911 .1115578 -0.37 0.712 -.2598736 .1774915 _k_eq_m1 | .1544305 .1104301 1.40 0.162 -.0620413 .3709023 _k_eq_p0 | 1.554861 .1114536 13.95 0.000 1.336383 1.77334 _k_eq_p1 | 1.500937 .1134032 13.24 0.000 1.278637 1.723237 _k_eq_p2 | 1.653871 .1172344 14.11 0.000 1.424061 1.883681 _k_eq_p3 | 1.671551 .1225596 13.64 0.000 1.431302 1.9118 _k_eq_p4 | 1.693565 .1282016 13.21 0.000 1.442256 1.944874 _k_eq_p5 | 1.960343 .1364737 14.36 0.000 1.692819 2.227867 _k_eq_p6 | 1.882618 .1282397 14.68 0.000 1.631235 2.134001 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.782291 .1027456 17.35 0.000 1.580883 1.983699 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(-6) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | .3258094 .097693 3.34 0.001 .1343056 .5173131 _k_eq_m4 | .3499046 .1008706 3.47 0.001 .1521718 .5476373 _k_eq_m3 | .5011721 .1023805 4.90 0.000 .3004795 .7018647 _k_eq_m2 | .5423631 .1068142 5.08 0.000 .3329794 .7517468 _k_eq_m1 | .6967936 .1115468 6.25 0.000 .4781328 .9154545 _k_eq_p0 | 2.097224 .1155157 18.16 0.000 1.870783 2.323665 _k_eq_p1 | 2.0433 .1201001 17.01 0.000 1.807873 2.278728 _k_eq_p2 | 2.196234 .1260542 17.42 0.000 1.949135 2.443334 _k_eq_p3 | 2.213914 .1328517 16.66 0.000 1.95349 2.474338 _k_eq_p4 | 2.235928 .139252 16.06 0.000 1.962958 2.508898 _k_eq_p5 | 2.502706 .1478212 16.93 0.000 2.212938 2.792474 _k_eq_p6 | 2.424981 .1418755 17.09 0.000 2.146868 2.703094 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.239928 .0357328 34.70 0.000 1.169882 1.309974 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . * xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(-7) plot . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(1) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -2.0433 .1201001 -17.01 0.000 -2.278728 -1.807873 _k_eq_m5 | -1.717491 .1272927 -13.49 0.000 -1.967018 -1.467964 _k_eq_m4 | -1.693396 .1219602 -13.88 0.000 -1.93247 -1.454322 _k_eq_m3 | -1.542128 .1166941 -13.22 0.000 -1.770879 -1.313377 _k_eq_m2 | -1.500937 .1134032 -13.24 0.000 -1.723237 -1.278637 _k_eq_m1 | -1.346507 .109264 -12.32 0.000 -1.560693 -1.13232 _k_eq_p0 | .0539243 .1072494 0.50 0.615 -.1563125 .264161 _k_eq_p2 | .1529342 .1077744 1.42 0.156 -.0583317 .3642001 _k_eq_p3 | .170614 .1114313 1.53 0.126 -.0478204 .3890485 _k_eq_p4 | .1926279 .1159339 1.66 0.097 -.0346328 .4198886 _k_eq_p5 | .4594058 .12323 3.73 0.000 .2178428 .7009687 _k_eq_p6 | .3816809 .1103236 3.46 0.001 .1654177 .597944 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 3.283228 .1142248 28.74 0.000 3.059318 3.507138 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -2.502706 .1478212 -16.93 0.000 -2.792474 -2.212938 _k_eq_m5 | -2.176897 .1522259 -14.30 0.000 -2.475299 -1.878494 _k_eq_m4 | -2.152801 .1470996 -14.63 0.000 -2.441155 -1.864448 _k_eq_m3 | -2.001534 .1410198 -14.19 0.000 -2.277969 -1.725098 _k_eq_m2 | -1.960343 .1364737 -14.36 0.000 -2.227867 -1.692819 _k_eq_m1 | -1.805912 .1304444 -13.84 0.000 -2.061617 -1.550207 _k_eq_p0 | -.4054815 .126698 -3.20 0.001 -.6538427 -.1571202 _k_eq_p1 | -.4594058 .12323 -3.73 0.000 -.7009687 -.2178428 _k_eq_p2 | -.3064715 .1216902 -2.52 0.012 -.5450161 -.0679269 _k_eq_p3 | -.2887917 .1218759 -2.37 0.018 -.5277004 -.049883 _k_eq_p4 | -.2667779 .1235323 -2.16 0.031 -.5089335 -.0246222 _k_eq_p6 | -.0777249 .1096224 -0.71 0.478 -.2926135 .1371638 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 3.742634 .142513 26.26 0.000 3.463271 4.021997 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . . graph drop _all . . * Test exclusion of unbalanced units with ambiguous eventtime . gen z2 = z . replace z2 = . if i==1 & t==7 (1 real change made, 1 to missing) . xtevent y , policyvar(z2) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Unit 1 not used because of ambiguous event-time due to missing values in policyvar. Linear regression, absorbing indicators Number of obs = 8,991 Absorbed variable: i No. of categories = 999 F(20, 7972) = 168.20 Prob > F = 0.0000 R-squared = 0.7321 Adj R-squared = 0.6979 Root MSE = 1.0398 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6970765 .1115369 -6.25 0.000 -.915718 -.4784351 _k_eq_m5 | -.3711513 .1213932 -3.06 0.002 -.6091137 -.1331889 _k_eq_m4 | -.347215 .116908 -2.97 0.003 -.5763853 -.1180447 _k_eq_m3 | -.1957088 .1125749 -1.74 0.082 -.416385 .0249673 _k_eq_m2 | -.154458 .1104181 -1.40 0.162 -.3709065 .0619904 _k_eq_p0 | 1.405862 .1082177 12.99 0.000 1.193727 1.617997 _k_eq_p1 | 1.335358 .10936 12.21 0.000 1.120984 1.549732 _k_eq_p2 | 1.507013 .1125187 13.39 0.000 1.286447 1.727579 _k_eq_p3 | 1.514108 .1173321 12.90 0.000 1.284106 1.744109 _k_eq_p4 | 1.536464 .1226399 12.53 0.000 1.296058 1.776871 _k_eq_p5 | 1.812281 .1306871 13.87 0.000 1.5561 2.068462 _k_eq_p6 | 1.731422 .121197 14.29 0.000 1.493844 1.968999 | t | 8 | .2557977 .046607 5.49 0.000 .1644357 .3471597 9 | .4123442 .0467999 8.81 0.000 .3206042 .5040841 10 | .6228568 .0471342 13.21 0.000 .5304614 .7152523 11 | .7340592 .0475978 15.42 0.000 .6407551 .8273634 12 | .8801966 .0482386 18.25 0.000 .7856364 .9747568 13 | 1.082393 .0490061 22.09 0.000 .9863284 1.178458 14 | 1.215459 .0498683 24.37 0.000 1.117704 1.313214 15 | 1.442246 .0508506 28.36 0.000 1.342565 1.541926 | _cons | 1.938516 .1061656 18.26 0.000 1.730403 2.146628 ------------------------------------------------------------------------------ F test of absorbed indicators: F(998, 7972) = 11.913 Prob > F = 0.000 . drop z2 . . * Overlay static plot . xtevent y , policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xteventplot, overlay(static) Estimating static model... Using options panelvar and timevar from xtset option static specified. Estimating static model Plotting options ignored No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(9, 7991) = 364.88 Prob > F = 0.0000 R-squared = 0.7300 Adj R-squared = 0.6959 Root MSE = 1.0432 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- z | 1.593592 .0649456 24.54 0.000 1.466282 1.720903 | t | 8 | .2722747 .0466872 5.83 0.000 .1807557 .3637937 9 | .4402111 .0467515 9.42 0.000 .348566 .5318563 10 | .669563 .0468665 14.29 0.000 .5776925 .7614335 11 | .7950925 .0470328 16.91 0.000 .7028959 .8872891 12 | .9565168 .0472055 20.26 0.000 .8639818 1.049052 13 | 1.175626 .0474565 24.77 0.000 1.082599 1.268653 14 | 1.320488 .0477255 27.67 0.000 1.226934 1.414043 15 | 1.564441 .0479705 32.61 0.000 1.470406 1.658476 | _cons | 1.329013 .0332486 39.97 0.000 1.263837 1.394189 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7991) = 12.551 Prob > F = 0.000 . . *------------------------ 2.3: Replicate 2c ---------------------------------- . . * Replicate 2c . xtevent y x , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 174.69 Prob > F = 0.0000 R-squared = 0.7390 Adj R-squared = 0.7056 Root MSE = 1.0263 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.4560022 .1113138 -4.10 0.000 -.6742063 -.2377981 _k_eq_m5 | -.2003262 .1203847 -1.66 0.096 -.4363117 .0356593 _k_eq_m4 | -.2186228 .1157239 -1.89 0.059 -.4454719 .0082263 _k_eq_m3 | -.0613789 .1114933 -0.55 0.582 -.2799349 .1571772 _k_eq_m2 | -.0771815 .1091146 -0.71 0.479 -.2910747 .1367116 _k_eq_p0 | 1.300045 .1069193 12.16 0.000 1.090455 1.509635 _k_eq_p1 | 1.224207 .1081598 11.32 0.000 1.012186 1.436229 _k_eq_p2 | 1.356387 .1113725 12.18 0.000 1.138068 1.574707 _k_eq_p3 | 1.356192 .1161878 11.67 0.000 1.128433 1.58395 _k_eq_p4 | 1.377629 .1213722 11.35 0.000 1.139707 1.61555 _k_eq_p5 | 1.637558 .1292532 12.67 0.000 1.384188 1.890928 _k_eq_p6 | 1.538129 .1200869 12.81 0.000 1.302727 1.773531 x | .0723388 .0049476 14.62 0.000 .0626402 .0820373 | t | 8 | .2653197 .0459807 5.77 0.000 .1751855 .355454 9 | .4238567 .0461788 9.18 0.000 .3333342 .5143791 10 | .6520017 .0465406 14.01 0.000 .56077 .7432333 11 | .7692286 .0470181 16.36 0.000 .6770609 .8613964 12 | .9255591 .0476957 19.41 0.000 .8320631 1.019055 13 | 1.127495 .0484546 23.27 0.000 1.032511 1.222478 14 | 1.274492 .0493698 25.82 0.000 1.177714 1.37127 15 | 1.504786 .0503466 29.89 0.000 1.406093 1.603478 | _cons | 1.736018 .1056334 16.43 0.000 1.528949 1.943087 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.486 Prob > F = 0.000 . . * areg y x _k_eq* i.t , absorb(i) cluster(i) . . *------------------------ 2.4: Replicate 2d and test basic funcionality ---------------------------------- . . * Replicate 2d . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . . * Test alternative ways of specifying iv . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) proxyiv(1) plot Proxy for the confound specified. Implementing FHS estimator The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xteventplot, smpath(scatter) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 19.6751376 Order 0 Wald value 93.4338443 Order 1 Wald value 93.4338443 Order 2 Wald value 83.1263635 Order 3 Wald value 61.472432 Order 4 Wald value 61.4721624 Order 5 Wald value 59.4494704 Order 6 Wald value 57.4880328 Order 7 Wald value 42.447924 Order 8 Wald value 42.4280227 Order 9 Wald value 33.4822543 Order 10 Wald value 35.9566899 Could not find a polynomial with order<=maxorder through the Wald confidence region. Smoothest path won't be displayed. . /* > * This should not work now, for leads write 1 > cap gen f1z=f1.z > cap noi xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) proxyiv(f1z) > cap drop f1z > */ . . *Generate an instrument for the proxy. This instrument is collinear with the event-time dummies. . gen lead1=f1.d.z (1,000 missing values generated) . *expect an error message: instrument is collinear . *xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) proxyiv(lead1) . drop lead1 . . * Other leads . xtevent y , panelvar(i) timevar(t) policyvar(z) window(4) proxy(x) proxyiv(2) plot Proxy for the confound specified. Implementing FHS estimator The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 11,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.3931 min = 11 Between = 0.4362 avg = 11.0 Overall = 0.4113 max = 11 Wald chi2(20) = 64046.60 corr(u_i, Xb) = 0.1277 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .0932543 .0861759 1.08 0.279 -.0756474 .262156 _k_eq_m5 | -.3364242 .2249145 -1.50 0.135 -.7772486 .1044002 _k_eq_m4 | -.0677477 .1300922 -0.52 0.603 -.3227237 .1872283 _k_eq_m3 | -.046603 .13607 -0.34 0.732 -.3132954 .2200893 _k_eq_p0 | 1.335606 .1800512 7.42 0.000 .9827122 1.6885 _k_eq_p1 | 1.245856 .2077738 6.00 0.000 .838627 1.653085 _k_eq_p2 | 1.370561 .2177056 6.30 0.000 .9438659 1.797256 _k_eq_p3 | 1.328125 .2370735 5.60 0.000 .8634691 1.79278 _k_eq_p4 | 1.353031 .2584002 5.24 0.000 .8465763 1.859486 _k_eq_p5 | 1.498469 .2560854 5.85 0.000 .9965506 2.000387 | t | 7 | .1594086 .0469051 3.40 0.001 .0674763 .2513408 8 | .4279196 .0485742 8.81 0.000 .332716 .5231232 9 | .5885506 .0508332 11.58 0.000 .4889193 .6881819 10 | .8217971 .0602579 13.64 0.000 .7036937 .9399005 11 | .9415829 .0650537 14.47 0.000 .81408 1.069086 12 | 1.10317 .0740017 14.91 0.000 .9581293 1.248211 13 | 1.305502 .0733785 17.79 0.000 1.161683 1.449321 14 | 1.455028 .0859478 16.93 0.000 1.286574 1.623483 15 | 1.68863 .0873171 19.34 0.000 1.517492 1.859768 16 | 1.897273 .1066213 17.79 0.000 1.688299 2.106247 | _cons | 1.474445 .1937605 7.61 0.000 1.094681 1.854209 -------------+---------------------------------------------------------------- sigma_u | 1.1254759 sigma_e | 1.0340546 rho | .54225811 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,9980) = 11.82 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t _fd2z . xteventplot, smpath(scatter) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 16.9189776 Order 0 Wald value 121.723003 Order 1 Wald value 121.723003 Order 2 Wald value 108.241241 Order 3 Wald value 78.3429876 Order 4 Wald value 74.8193942 Order 5 Wald value 62.9956812 Order 6 Wald value 61.998723 Order 7 Wald value 48.467384 Order 8 Wald value 37.3701674 Order 9 Wald value 35.7685454 Order 10 Wald value 36.4441307 Could not find a polynomial with order<=maxorder through the Wald confidence region. Smoothest path won't be displayed. . xtevent y , panelvar(i) timevar(t) policyvar(z) window(4) proxy(x) proxyiv(3) plot Proxy for the confound specified. Implementing FHS estimator The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -3 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 11,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.3882 min = 11 Between = 0.4504 avg = 11.0 Overall = 0.4171 max = 11 Wald chi2(20) = 63535.91 corr(u_i, Xb) = 0.1239 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1194146 .0571801 2.09 0.037 .0073436 .2314855 _k_eq_m5 | -.2560575 .141472 -1.81 0.070 -.5333375 .0212224 _k_eq_m4 | -.0239056 .100577 -0.24 0.812 -.2210328 .1732216 _k_eq_m2 | .0298608 .0875364 0.34 0.733 -.1417074 .2014291 _k_eq_p0 | 1.302172 .1479421 8.80 0.000 1.012211 1.592133 _k_eq_p1 | 1.203078 .1649698 7.29 0.000 .8797433 1.526413 _k_eq_p2 | 1.324693 .1714415 7.73 0.000 .9886741 1.660712 _k_eq_p3 | 1.276282 .1841839 6.93 0.000 .9152885 1.637276 _k_eq_p4 | 1.294777 .1985173 6.52 0.000 .90569 1.683864 _k_eq_p5 | 1.438811 .1920755 7.49 0.000 1.06235 1.815272 | t | 7 | .1620442 .0467658 3.47 0.001 .0703849 .2537034 8 | .4324721 .0475653 9.09 0.000 .3392457 .5256984 9 | .5949812 .0485735 12.25 0.000 .4997788 .6901836 10 | .8336569 .0532497 15.66 0.000 .7292893 .9380244 11 | .9554519 .0556378 17.17 0.000 .8464039 1.0645 12 | 1.120774 .0602412 18.60 0.000 1.002703 1.238844 13 | 1.322801 .0600335 22.03 0.000 1.205137 1.440464 14 | 1.477028 .067276 21.95 0.000 1.345169 1.608886 15 | 1.710918 .0679397 25.18 0.000 1.577759 1.844078 16 | 1.926433 .078769 24.46 0.000 1.772049 2.080818 | _cons | 1.404255 .1242275 11.30 0.000 1.160774 1.647737 -------------+---------------------------------------------------------------- sigma_u | 1.1098289 sigma_e | 1.038202 rho | .53330832 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,9980) = 11.72 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m5 _k_eq_m4 _k_eq_m2 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t _fd3z . xteventplot, smpath(scatter) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 16.9189776 Order 0 Wald value 120.75243 Order 1 Wald value 120.75243 Order 2 Wald value 108.683546 Order 3 Wald value 80.6549725 Order 4 Wald value 75.90084 Order 5 Wald value 62.821969 Order 6 Wald value 62.8217534 Order 7 Wald value 51.7739477 Order 8 Wald value 42.4734094 Order 9 Wald value 38.8996058 Order 10 Wald value 40.4261902 Could not find a polynomial with order<=maxorder through the Wald confidence region. Smoothest path won't be displayed. . . * Test additional instruments . . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) proxyiv(1 2) plot Proxy for the confound specified. Implementing FHS estimator The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z _fd2z . xteventplot, smpath(scatter, technique("nr 10 bfgs 10")) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 19.6751376 Order 0 Wald value 93.4338443 Order 1 Wald value 93.4338443 Order 2 Wald value 83.1263635 Order 3 Wald value 61.472432 Order 4 Wald value 61.4721624 Order 5 Wald value 59.4494704 Order 6 Wald value 57.4880328 Order 7 Wald value 42.447924 Order 8 Wald value 42.4280227 Order 9 Wald value 33.4822543 Order 10 Wald value 35.9566903 Could not find a polynomial with order<=maxorder through the Wald confidence region. Smoothest path won't be displayed. . xtevent y , panelvar(i) timevar(t) policyvar(z) window(4) proxy(x) proxyiv(3 4) plot Proxy for the confound specified. Implementing FHS estimator The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -3 was selected to be normalized to zero. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -4 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 11,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.3865 min = 11 Between = 0.4531 avg = 11.0 Overall = 0.4178 max = 11 Wald chi2(19) = 63360.21 corr(u_i, Xb) = 0.1224 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1254907 .0512184 2.45 0.014 .0251045 .2258768 _k_eq_m5 | -.2358357 .1131876 -2.08 0.037 -.4576794 -.0139921 _k_eq_m2 | .0375657 .0814257 0.46 0.645 -.1220259 .1971572 _k_eq_p0 | 1.294979 .1450137 8.93 0.000 1.010757 1.5792 _k_eq_p1 | 1.193643 .1603439 7.44 0.000 .8793742 1.507911 _k_eq_p2 | 1.314465 .1661829 7.91 0.000 .9887526 1.640178 _k_eq_p3 | 1.264589 .1777372 7.11 0.000 .91623 1.612947 _k_eq_p4 | 1.281502 .1907628 6.72 0.000 .9076138 1.65539 _k_eq_p5 | 1.42507 .183423 7.77 0.000 1.065568 1.784573 | t | 7 | .1627109 .0467462 3.48 0.001 .07109 .2543319 8 | .4336661 .0473648 9.16 0.000 .3408328 .5264994 9 | .5965449 .0481926 12.38 0.000 .5020891 .6910007 10 | .8365841 .0518777 16.13 0.000 .7349057 .9382625 11 | .958899 .0537888 17.83 0.000 .8534748 1.064323 12 | 1.125109 .0574939 19.57 0.000 1.012423 1.237794 13 | 1.326981 .0574788 23.09 0.000 1.214325 1.439638 14 | 1.482433 .0634043 23.38 0.000 1.358162 1.606703 15 | 1.716465 .0638948 26.86 0.000 1.591233 1.841696 16 | 1.933434 .0731556 26.43 0.000 1.790052 2.076817 | _cons | 1.386463 .0992785 13.97 0.000 1.191881 1.581045 -------------+---------------------------------------------------------------- sigma_u | 1.1066263 sigma_e | 1.03964 rho | .53118024 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,9981) = 11.69 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m5 _k_eq_m2 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t _fd3z _fd4z . xteventplot, smpath(scatter, technique("nr 10 bfgs 10")) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 15.5073131 Order 0 Wald value 120.362278 Order 1 Wald value 120.362278 Order 2 Wald value 120.362278 Order 3 Wald value 115.968694 Order 4 Wald value 112.540054 Order 5 Wald value 111.690995 Order 6 Wald value 73.14401 Order 7 Wald value 51.7301481 Order 8 Wald value 43.6471586 Order 9 Wald value 39.1677076 Order 10 Wald value 41.0125623 Could not find a polynomial with order<=maxorder through the Wald confidence region. Smoothest path won't be displayed. . . * Test both normalizations . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(-3) proxy(x) proxyiv(1) plot Proxy for the confound specified. Implementing FHS estimator The coefficient at -3 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -1 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.3111 min = 9 Between = 0.4443 avg = 9.0 Overall = 0.3883 max = 9 Wald chi2(20) = 51302.84 corr(u_i, Xb) = 0.1277 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1054137 .0600395 1.76 0.079 -.0122616 .223089 _k_eq_m6 | -.3459068 .1625258 -2.13 0.033 -.6644516 -.0273621 _k_eq_m5 | -.1222973 .1317452 -0.93 0.353 -.3805132 .1359185 _k_eq_m4 | -.1599765 .1103863 -1.45 0.147 -.3763296 .0563766 _k_eq_m2 | -.0418615 .0951386 -0.44 0.660 -.2283297 .1446067 _k_eq_p0 | 1.254146 .1633538 7.68 0.000 .9339786 1.574314 _k_eq_p1 | 1.168289 .178346 6.55 0.000 .8187375 1.517841 _k_eq_p2 | 1.29098 .1939432 6.66 0.000 .9108583 1.671102 _k_eq_p3 | 1.282611 .2084662 6.15 0.000 .8740249 1.691197 _k_eq_p4 | 1.303785 .2110926 6.18 0.000 .8900506 1.717519 _k_eq_p5 | 1.560583 .2196169 7.11 0.000 1.130141 1.991024 _k_eq_p6 | 1.45123 .2290275 6.34 0.000 1.002345 1.900116 | t | 8 | .2681735 .0464067 5.78 0.000 .1772181 .3591289 9 | .4292792 .0471873 9.10 0.000 .3367938 .5217646 10 | .6644899 .0514217 12.92 0.000 .5637051 .7652746 11 | .7845251 .0539987 14.53 0.000 .6786896 .8903607 12 | .9460689 .0591706 15.99 0.000 .8300967 1.062041 13 | 1.147929 .0593978 19.33 0.000 1.031512 1.264347 14 | 1.301064 .0671957 19.36 0.000 1.169362 1.432765 15 | 1.532279 .0687524 22.29 0.000 1.397526 1.667031 | _cons | 1.644252 .1344661 12.23 0.000 1.380703 1.9078 -------------+---------------------------------------------------------------- sigma_u | 1.125778 sigma_e | 1.0291525 rho | .54474932 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.87 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m2 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . . * Test additional proxys . cap gen x2=rnormal() . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x x2) proxyiv(1 2) plot Proxy for the confound specified. Implementing FHS estimator The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2096 min = 9 Between = 0.4143 avg = 9.0 Overall = 0.3286 max = 9 Wald chi2(20) = 44715.46 corr(u_i, Xb) = 0.1041 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .0792376 .0949483 0.83 0.404 -.1068577 .2653329 x2 | .402684 .980275 0.41 0.681 -1.51862 2.323988 _k_eq_m6 | -.3722133 .2013451 -1.85 0.065 -.7668423 .0224158 _k_eq_m5 | -.1232695 .1418398 -0.87 0.385 -.4012703 .1547313 _k_eq_m4 | -.1566654 .1158732 -1.35 0.176 -.3837727 .0704419 _k_eq_p0 | 1.354403 .285013 4.75 0.000 .7957881 1.913018 _k_eq_p1 | 1.300362 .3596086 3.62 0.000 .5955425 2.005182 _k_eq_p2 | 1.411259 .346941 4.07 0.000 .7312676 2.091251 _k_eq_p3 | 1.407282 .3661878 3.84 0.000 .6895669 2.124997 _k_eq_p4 | 1.419738 .3514413 4.04 0.000 .730926 2.108551 _k_eq_p5 | 1.669727 .3455374 4.83 0.000 .9924863 2.346968 _k_eq_p6 | 1.593317 .4157686 3.83 0.000 .7784254 2.408209 | t | 8 | .2716389 .0503969 5.39 0.000 .1728627 .3704151 9 | .4380945 .054727 8.01 0.000 .3308316 .5453575 10 | .6987784 .0980794 7.12 0.000 .5065463 .8910106 11 | .7849192 .0578083 13.58 0.000 .6716169 .8982214 12 | .9450066 .0635728 14.86 0.000 .8204062 1.069607 13 | 1.134028 .0737035 15.39 0.000 .9895721 1.278485 14 | 1.276841 .0961958 13.27 0.000 1.0883 1.465381 15 | 1.524182 .0774204 19.69 0.000 1.372441 1.675923 | _cons | 1.643363 .1433827 11.46 0.000 1.362338 1.924388 -------------+---------------------------------------------------------------- sigma_u | 1.1516408 sigma_e | 1.1023553 rho | .52185539 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 8.60 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x x2 Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z _fd2z . * Must fail . * xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x x2) proxyiv(1) . cap drop x2 . . * Testing xtset options . . xtevent y , policyvar(z) window(5) proxy(x) plot Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xteventplot, levels(90 95 99) . xtevent y , policyvar(z) panelvar(i) window(5) proxy(x) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xtevent y , policyvar(z) timevar(t) window(5) proxy(x) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . . /* Must fail > xtevent y , policyvar(z) panelvar(z) window(5) proxy(x) > xtevent y , policyvar(z) timevar(z) window(5) proxy(x) > */ . . * Testing noci, nosupt, nozeroline, nonormlabel . xtevent y , policyvar(z) timevar(t) window(5) proxy(x) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xteventplot, nosupt option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated . xteventplot, noci option noci has been specified. Confidence intervals won't be displayed . xteventplot, nozeroline option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, nonormlabel option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . . * Test if/in . xtevent y if i<100, panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 891 Group variable: i Number of groups = 99 R-squared: Obs per group: Within = . min = 9 Between = 0.2013 avg = 9.0 Overall = 0.1137 max = 9 Wald chi2(20) = 58.74 corr(u_i, Xb) = -0.6954 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | 3.904531 23.42498 0.17 0.868 -42.00758 49.81664 _k_eq_m6 | 14.60994 93.76203 0.16 0.876 -169.1603 198.3801 _k_eq_m5 | 9.188704 62.33591 0.15 0.883 -112.9874 131.3648 _k_eq_m4 | 5.003296 32.56937 0.15 0.878 -58.8315 68.83809 _k_eq_m3 | 3.824933 24.5759 0.16 0.876 -44.34295 51.99282 _k_eq_p0 | -7.130993 50.09073 -0.14 0.887 -105.307 91.04504 _k_eq_p1 | -7.700155 56.20022 -0.14 0.891 -117.8506 102.4503 _k_eq_p2 | -7.000856 51.31744 -0.14 0.891 -107.5812 93.57948 _k_eq_p3 | -12.9492 88.05295 -0.15 0.883 -185.5298 159.6314 _k_eq_p4 | -8.673022 63.21987 -0.14 0.891 -132.5817 115.2357 _k_eq_p5 | -7.923337 57.57713 -0.14 0.891 -120.7724 104.9258 _k_eq_p6 | -13.04083 90.72174 -0.14 0.886 -190.8522 164.7705 | t | 8 | -.5570529 4.204376 -0.13 0.895 -8.797477 7.683372 9 | 1.215081 5.934503 0.20 0.838 -10.41633 12.84649 10 | 1.473615 5.306884 0.28 0.781 -8.927688 11.87492 11 | 1.921973 7.767436 0.25 0.805 -13.30192 17.14587 12 | 2.008215 9.007614 0.22 0.824 -15.64638 19.66282 13 | 2.750788 12.02988 0.23 0.819 -20.82735 26.32893 14 | 3.41202 14.57405 0.23 0.815 -25.1526 31.97664 15 | 4.820114 22.1999 0.22 0.828 -38.69089 48.33112 | _cons | -8.939542 66.86751 -0.13 0.894 -139.9975 122.1184 -------------+---------------------------------------------------------------- sigma_u | 8.0841167 sigma_e | 9.1221192 rho | .43989165 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(98,772) = 0.12 Prob > F = 1.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xtevent y in 1/600 , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 3 selected. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -3 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 270 Group variable: i Number of groups = 30 R-squared: Obs per group: Within = . min = 9 Between = 0.2068 avg = 9.0 Overall = 0.0840 max = 9 Wald chi2(20) = 38.08 corr(u_i, Xb) = -0.7204 Prob > chi2 = 0.0126 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | -2.074832 5.831837 -0.36 0.722 -13.50502 9.355359 _k_eq_m6 | -6.832495 16.2482 -0.42 0.674 -38.67839 25.0134 _k_eq_m5 | -3.883706 7.650339 -0.51 0.612 -18.87809 11.11068 _k_eq_m4 | -2.734626 5.493707 -0.50 0.619 -13.50209 8.032843 _k_eq_m2 | .1443233 2.632332 0.05 0.956 -5.014952 5.303598 _k_eq_p0 | 6.34233 17.88232 0.35 0.723 -28.70636 41.39102 _k_eq_p1 | 5.929012 13.41204 0.44 0.658 -20.3581 32.21612 _k_eq_p2 | 4.086838 9.287697 0.44 0.660 -14.11671 22.29039 _k_eq_p3 | 5.211208 10.9801 0.47 0.635 -16.3094 26.73182 _k_eq_p4 | 2.237807 7.271923 0.31 0.758 -12.0149 16.49051 _k_eq_p5 | -1.908294 7.684516 -0.25 0.804 -16.96967 13.15308 _k_eq_p6 | -.2188566 3.674137 -0.06 0.953 -7.420033 6.98232 | t | 8 | -.5781277 1.860096 -0.31 0.756 -4.22385 3.067594 9 | -.204819 1.505974 -0.14 0.892 -3.156473 2.746835 10 | .4295255 1.45913 0.29 0.768 -2.430317 3.289368 11 | 1.013158 2.069427 0.49 0.624 -3.042844 5.06916 12 | -.9958794 4.340002 -0.23 0.819 -9.502127 7.510369 13 | .868834 1.470602 0.59 0.555 -2.013493 3.751161 14 | -.8129916 5.068735 -0.16 0.873 -10.74753 9.121546 15 | -.3456975 4.438444 -0.08 0.938 -9.044887 8.353492 | _cons | 5.238503 8.698547 0.60 0.547 -11.81034 22.28734 -------------+---------------------------------------------------------------- sigma_u | 5.9007507 sigma_e | 5.2473311 rho | .55841207 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(29,220) = 0.32 Prob > F = 0.9997 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m2 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd3z . xtevent y in 1/600 if i<30 , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 3 selected. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -3 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 261 Group variable: i Number of groups = 29 R-squared: Obs per group: Within = . min = 9 Between = 0.0966 avg = 9.0 Overall = 0.0243 max = 9 Wald chi2(20) = 154.53 corr(u_i, Xb) = -0.6305 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | -.8596922 1.361934 -0.63 0.528 -3.529034 1.80965 _k_eq_m6 | -3.717503 3.894232 -0.95 0.340 -11.35006 3.915051 _k_eq_m5 | -3.034587 2.748779 -1.10 0.270 -8.422094 2.352921 _k_eq_m4 | -2.107002 2.087867 -1.01 0.313 -6.199146 1.985142 _k_eq_m2 | -1.069151 1.55633 -0.69 0.492 -4.119502 1.981199 _k_eq_p0 | 2.402322 4.108095 0.58 0.559 -5.649395 10.45404 _k_eq_p1 | 2.829266 3.046377 0.93 0.353 -3.141522 8.800055 _k_eq_p2 | 1.849055 2.180036 0.85 0.396 -2.423738 6.121847 _k_eq_p3 | 2.81236 2.661867 1.06 0.291 -2.404804 8.029523 _k_eq_p4 | .5229343 1.894417 0.28 0.783 -3.190056 4.235924 _k_eq_p5 | -.9970253 2.799874 -0.36 0.722 -6.484678 4.490628 _k_eq_p6 | -.3820892 1.754115 -0.22 0.828 -3.820092 3.055914 | t | 8 | -.2382977 .6826405 -0.35 0.727 -1.576249 1.099653 9 | .0576936 .6688667 0.09 0.931 -1.253261 1.368648 10 | .4155803 .7284304 0.57 0.568 -1.012117 1.843278 11 | .7196852 .7691893 0.94 0.349 -.7878981 2.227269 12 | -.029409 1.102559 -0.03 0.979 -2.190385 2.131566 13 | 1.018625 .7369307 1.38 0.167 -.425733 2.462982 14 | .0843227 1.393674 0.06 0.952 -2.647228 2.815873 15 | .642588 1.079589 0.60 0.552 -1.473368 2.758544 | _cons | 3.486757 2.103578 1.66 0.097 -.6361801 7.609694 -------------+---------------------------------------------------------------- sigma_u | 2.8508066 sigma_e | 2.4485654 rho | .57546876 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(28,212) = 1.40 Prob > F = 0.0973 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m2 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd3z . . * Test nofe, note . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) nofe proxy(x) Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. note: 1.t identifies no observations in the sample. note: 2.t identifies no observations in the sample. note: 3.t identifies no observations in the sample. note: 4.t identifies no observations in the sample. note: 5.t identifies no observations in the sample. note: 6.t identifies no observations in the sample. note: 15.t omitted because of collinearity. note: 16.t identifies no observations in the sample. note: 17.t identifies no observations in the sample. note: 18.t identifies no observations in the sample. note: 19.t identifies no observations in the sample. note: 20.t identifies no observations in the sample. Instrumental variables 2SLS regression Source | SS df MS Number of obs = 9,000 -------------+------------------------------ F( 20, 8979) = 246.36 Model | 12679.2548 20 633.962738 Prob > F = 0.0000 Residual | 19524.3564 8979 2.17444664 R-squared = 0.3937 -------------+------------------------------ Adj R-squared = 0.3924 Total | 32203.6112 8999 3.57857664 Root MSE = 1.4746 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1866905 .1539382 1.21 0.225 -.1150635 .4884445 _k_eq_m6 | -.4400942 .6054 -0.73 0.467 -1.626816 .7466279 _k_eq_m5 | -.0131096 .2651722 -0.05 0.961 -.5329077 .5066886 _k_eq_m4 | -.1266771 .1993939 -0.64 0.525 -.5175346 .2641804 _k_eq_m3 | .1100165 .2208765 0.50 0.618 -.3229518 .5429848 _k_eq_p0 | 1.075928 .3009703 3.57 0.000 .4859574 1.665898 _k_eq_p1 | .9444141 .3278846 2.88 0.004 .3016854 1.587143 _k_eq_p2 | 1.027645 .3469694 2.96 0.003 .3475055 1.707784 _k_eq_p3 | .9607365 .3593791 2.67 0.008 .2562715 1.665201 _k_eq_p4 | .9472728 .35444 2.67 0.008 .2524895 1.642056 _k_eq_p5 | 1.2183 .366638 3.32 0.001 .4996055 1.936994 _k_eq_p6 | 1.025804 .3653197 2.81 0.005 .3096943 1.741914 | t | 1 | 0 (empty) 2 | 0 (empty) 3 | 0 (empty) 4 | 0 (empty) 5 | 0 (empty) 6 | 0 (empty) 7 | -1.58012 .1467227 -10.77 0.000 -1.86773 -1.29251 8 | -1.309948 .1323895 -9.89 0.000 -1.569461 -1.050434 9 | -1.146683 .1211621 -9.46 0.000 -1.384188 -.9091773 10 | -.8969929 .0955315 -9.39 0.000 -1.084256 -.7097294 11 | -.7714088 .0866672 -8.90 0.000 -.9412962 -.6015214 12 | -.599894 .0732455 -8.19 0.000 -.7434719 -.4563161 13 | -.4000918 .0733866 -5.45 0.000 -.5439462 -.2562374 14 | -.2312987 .0661804 -3.49 0.000 -.3610274 -.10157 15 | 0 (omitted) 16 | 0 (empty) 17 | 0 (empty) 18 | 0 (empty) 19 | 0 (empty) 20 | 0 (empty) | _cons | 3.311779 .3668735 9.03 0.000 2.592624 4.030935 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t _fd1z . . * Note: Warning for the omitted time dummy comes from ivregress 2sls . . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) nofe note proxy(x) Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Instrumental variables 2SLS regression Source | SS df MS Number of obs = 9,000 -------------+------------------------------ F( 12, 8987) = 317.63 Model | 10790.8053 12 899.233776 Prob > F = 0.0000 Residual | 21412.8059 8987 2.38264225 R-squared = 0.3351 -------------+------------------------------ Adj R-squared = 0.3342 Total | 32203.6112 8999 3.57857664 Root MSE = 1.5436 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1512555 .1584994 0.95 0.340 -.1594394 .4619504 _k_eq_m6 | -.5582477 .6252372 -0.89 0.372 -1.783855 .6673597 _k_eq_m5 | -.0762607 .2728355 -0.28 0.780 -.6110804 .458559 _k_eq_m4 | -.1920545 .2045654 -0.94 0.348 -.5930493 .2089404 _k_eq_m3 | .0718171 .2290006 0.31 0.754 -.3770763 .5207105 _k_eq_p0 | 1.168785 .3085102 3.79 0.000 .5640343 1.773535 _k_eq_p1 | 1.065366 .3340942 3.19 0.001 .4104652 1.720267 _k_eq_p2 | 1.190744 .3504899 3.40 0.001 .5037042 1.877785 _k_eq_p3 | 1.163913 .3597272 3.24 0.001 .4587658 1.86906 _k_eq_p4 | 1.235302 .3466122 3.56 0.000 .5558626 1.914741 _k_eq_p5 | 1.592815 .3528616 4.51 0.000 .9011253 2.284504 _k_eq_p6 | 1.608009 .3317805 4.85 0.000 .9576435 2.258374 _cons | 2.588622 .4398952 5.88 0.000 1.726327 3.450917 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 _fd1z . . * Test savek . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) savek(a) proxy(x) Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . des a_eq*, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_eq_m6 double %10.0g Event time <= - 6 a_eq_m5 double %10.0g Event-time = - 5 a_eq_m4 double %10.0g Event-time = - 4 a_eq_m3 double %10.0g Event-time = - 3 a_eq_m2 double %10.0g Event-time = - 2 a_eq_m1 double %10.0g Event-time = - 1 a_eq_p0 double %10.0g Event-time = + 0 a_eq_p1 double %10.0g Event-time = + 1 a_eq_p2 double %10.0g Event-time = + 2 a_eq_p3 double %10.0g Event-time = + 3 a_eq_p4 double %10.0g Event-time = + 4 a_eq_p5 double %10.0g Event-time = + 5 a_eq_p6 double %10.0g Event time >= + 6 . des a_evtime, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_evtime long %12.0g . drop a_* . . . * Test factor variables in varlist . cap gen pois=rpoisson(5) . xtevent y i.pois, panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2971 min = 9 Between = 0.4633 avg = 9.0 Overall = 0.3938 max = 9 Wald chi2(35) = 50202.66 corr(u_i, Xb) = 0.1183 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1466324 .1040605 1.41 0.159 -.0573225 .3505872 | pois | 1 | .191326 .1659783 1.15 0.249 -.1339854 .5166374 2 | .1336157 .1605032 0.83 0.405 -.1809649 .4481962 3 | .2575876 .1580215 1.63 0.103 -.0521289 .5673041 4 | .1961903 .1541175 1.27 0.203 -.1058746 .4982551 5 | .1813632 .1568042 1.16 0.247 -.1259674 .4886937 6 | .1954914 .1554352 1.26 0.208 -.1091559 .5001387 7 | .2128354 .1577168 1.35 0.177 -.0962839 .5219547 8 | .2858568 .1586829 1.80 0.072 -.025156 .5968696 9 | .1841903 .1660965 1.11 0.267 -.1413527 .5097334 10 | .1963874 .170818 1.15 0.250 -.1384098 .5311845 11 | .1167189 .1937772 0.60 0.547 -.2630774 .4965151 12 | .3815787 .2766065 1.38 0.168 -.16056 .9237174 13 | -.426867 .358012 -1.19 0.233 -1.128558 .2748236 14 | -.0947799 .4775869 -0.20 0.843 -1.030833 .8412731 15 | .3674068 .9509024 0.39 0.699 -1.496328 2.231141 | _k_eq_m6 | -.2100656 .3003827 -0.70 0.484 -.7988049 .3786738 _k_eq_m5 | -.030045 .2151736 -0.14 0.889 -.4517775 .3916875 _k_eq_m4 | -.087816 .1631552 -0.54 0.590 -.4075944 .2319623 _k_eq_m3 | .0795204 .1679079 0.47 0.636 -.249573 .4086139 _k_eq_p0 | 1.19254 .2192058 5.44 0.000 .7629042 1.622175 _k_eq_p1 | 1.089885 .248956 4.38 0.000 .60194 1.57783 _k_eq_p2 | 1.200801 .2758655 4.35 0.000 .6601149 1.741488 _k_eq_p3 | 1.181829 .3004698 3.93 0.000 .5929189 1.770739 _k_eq_p4 | 1.20383 .3014786 3.99 0.000 .6129428 1.794717 _k_eq_p5 | 1.450539 .3133095 4.63 0.000 .8364635 2.064614 _k_eq_p6 | 1.33898 .3380326 3.96 0.000 .6764484 2.001512 | t | 8 | .2739489 .0474901 5.77 0.000 .18087 .3670277 9 | .437539 .0496756 8.81 0.000 .3401765 .5349014 10 | .6778654 .0608031 11.15 0.000 .5586936 .7970373 11 | .8033137 .0672734 11.94 0.000 .6714602 .9351672 12 | .9715076 .079529 12.22 0.000 .8156336 1.127382 13 | 1.173289 .0795799 14.74 0.000 1.017315 1.329263 14 | 1.334305 .0961122 13.88 0.000 1.145929 1.522682 15 | 1.56285 .0989666 15.79 0.000 1.368879 1.756821 | _cons | 1.33087 .3164631 4.21 0.000 .7106139 1.951126 -------------+---------------------------------------------------------------- sigma_u | 1.104182 sigma_e | 1.040541 rho | .5296472 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7965) = 9.64 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: 1.pois 2.pois 3.pois 4.pois 5.pois 6.pois 7.pois 8.pois 9.pois 10.pois 11.pois 12.pois 13.pois 14.pois 15.pois _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . cap drop pois . . * Test asymmetric window . xtevent y , panelvar(i) timevar(t) policyvar(z) window(-4 2) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 13,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.4622 min = 13 Between = 0.3968 avg = 13.0 Overall = 0.4219 max = 13 Wald chi2(20) = 65240.77 corr(u_i, Xb) = 0.1036 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .0946588 .0793311 1.19 0.233 -.0608272 .2501448 _k_eq_m5 | -.3850017 .2129896 -1.81 0.071 -.8024536 .0324502 _k_eq_m4 | -.1420751 .1251308 -1.14 0.256 -.387327 .1031769 _k_eq_m3 | -.0518564 .1254125 -0.41 0.679 -.2976604 .1939476 _k_eq_p0 | 1.317675 .1667024 7.90 0.000 .9909446 1.644406 _k_eq_p1 | 1.24898 .1922156 6.50 0.000 .8722443 1.625715 _k_eq_p2 | 1.353375 .1988024 6.81 0.000 .9637292 1.74302 _k_eq_p3 | 1.395035 .2252055 6.19 0.000 .9536402 1.83643 | t | 5 | .2278566 .0514796 4.43 0.000 .1269584 .3287548 6 | .3735137 .0505528 7.39 0.000 .274432 .4725955 7 | .531388 .053849 9.87 0.000 .425846 .6369301 8 | .7986449 .057432 13.91 0.000 .6860803 .9112096 9 | .9584669 .0610096 15.71 0.000 .8388902 1.078044 10 | 1.192282 .0724912 16.45 0.000 1.050202 1.334362 11 | 1.312226 .0777359 16.88 0.000 1.159866 1.464585 12 | 1.474963 .0866563 17.02 0.000 1.305119 1.644806 13 | 1.679756 .0858821 19.56 0.000 1.51143 1.848081 14 | 1.830033 .0981719 18.64 0.000 1.63762 2.022447 15 | 2.065015 .0992823 20.80 0.000 1.870425 2.259605 16 | 2.275756 .1175787 19.36 0.000 2.045306 2.506206 | _cons | 1.14507 .2028527 5.64 0.000 .747486 1.542654 -------------+---------------------------------------------------------------- sigma_u | 1.109964 sigma_e | 1.0417382 rho | .53167598 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,11980) = 13.60 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 5.t 6.t 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t _fd1z . xtevent y , panelvar(i) timevar(t) policyvar(z) window(-2 2) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 15,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.5170 min = 15 Between = 0.4448 avg = 15.0 Overall = 0.4710 max = 15 Wald chi2(20) = 90489.01 corr(u_i, Xb) = 0.1196 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1299779 .0857769 1.52 0.130 -.0381417 .2980976 _k_eq_m3 | -.1850155 .1911075 -0.97 0.333 -.5595792 .1895483 _k_eq_p0 | 1.258045 .1735165 7.25 0.000 .9179587 1.598131 _k_eq_p1 | 1.163849 .1991914 5.84 0.000 .7734413 1.554257 _k_eq_p2 | 1.253699 .2038229 6.15 0.000 .8542135 1.653185 _k_eq_p3 | 1.286978 .2372187 5.43 0.000 .8220379 1.751918 | t | 5 | .240736 .0523923 4.59 0.000 .138049 .3434231 6 | .3865681 .0511893 7.55 0.000 .286239 .4868972 7 | .551073 .0541324 10.18 0.000 .4449754 .6571706 8 | .8233304 .0576025 14.29 0.000 .7104315 .9362293 9 | .9881476 .0607877 16.26 0.000 .8690059 1.107289 10 | 1.232292 .0722682 17.05 0.000 1.090649 1.373935 11 | 1.356494 .0776937 17.46 0.000 1.204217 1.508771 12 | 1.524912 .0872478 17.48 0.000 1.35391 1.695915 13 | 1.731592 .0854446 20.27 0.000 1.564124 1.89906 14 | 1.891099 .0978369 19.33 0.000 1.699342 2.082856 15 | 2.126845 .0992941 21.42 0.000 1.932232 2.321458 16 | 2.34808 .1184492 19.82 0.000 2.115924 2.580236 17 | 2.535341 .109561 23.14 0.000 2.320605 2.750076 18 | 2.693943 .1113882 24.19 0.000 2.475626 2.91226 | _cons | .9661647 .1875359 5.15 0.000 .5986012 1.333728 -------------+---------------------------------------------------------------- sigma_u | 1.1000613 sigma_e | 1.0545585 rho | .52110934 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,13980) = 15.24 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 5.t 6.t 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t 17.t 18.t _fd1z . . * Test overlay plots . graph drop _all . . xteventplot, y . xteventplot, proxy . xteventplot, overlay(iv) . xteventplot . xteventplot, overlay(static) Estimating static model... option static specified. Estimating static model Plotting options ignored Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. Fixed-effects (within) IV regression Number of obs = 15,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.4926 min = 15 Between = 0.4570 avg = 15.0 Overall = 0.4685 max = 15 Wald chi2(16) = 86121.88 corr(u_i, Xb) = 0.0905 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1929577 .030682 6.29 0.000 .1328221 .2530933 z | 1.137043 .1183371 9.61 0.000 .9051062 1.368979 | t | 5 | .2577116 .0489365 5.27 0.000 .1617978 .3536255 6 | .4020664 .0486802 8.26 0.000 .3066549 .4974779 7 | .5714497 .0489423 11.68 0.000 .4755246 .6673749 8 | .8494192 .0493449 17.21 0.000 .7527049 .9461335 9 | 1.017726 .0495604 20.54 0.000 .9205892 1.114862 10 | 1.275309 .0510008 25.01 0.000 1.175349 1.375269 11 | 1.405069 .0515962 27.23 0.000 1.303943 1.506196 12 | 1.582511 .0528617 29.94 0.000 1.478904 1.686118 13 | 1.788379 .0525394 34.04 0.000 1.685404 1.891354 14 | 1.958409 .0545965 35.87 0.000 1.851401 2.065416 15 | 2.196034 .0545611 40.25 0.000 2.089096 2.302972 16 | 2.433785 .0578714 42.06 0.000 2.320359 2.547211 17 | 2.614295 .0562377 46.49 0.000 2.504072 2.724519 18 | 2.774229 .0563932 49.19 0.000 2.6637 2.884757 | _cons | .7877819 .0341796 23.05 0.000 .7207912 .8547727 -------------+---------------------------------------------------------------- sigma_u | 1.0756173 sigma_e | 1.08072 rho | .49763363 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,13984) = 14.51 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: z 5.t 6.t 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t 17.t 18.t _fd1z . . . . . . *------------------------ 2.5: Replicate 2e and test basic funcionality ---------------------------------- . . * Replicate 2e . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) trend(-3, saveov) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.2058035 .2454172 -0.84 0.402 -.6868853 .2752783 _k_eq_m5 | .0218079 .1214276 0.18 0.857 -.216222 .2598378 _k_eq_m4 | -.052295 .1562626 -0.33 0.738 -.3586106 .2540206 _k_eq_m3 | .0007745 .1164445 0.01 0.995 -.2274871 .2290361 _k_eq_m2 | -.0562325 .0971349 -0.58 0.563 -.2466423 .1341774 _k_eq_p0 | 1.302233 .144724 9.00 0.000 1.018536 1.58593 _k_eq_p1 | 1.15011 .1929457 5.96 0.000 .7718865 1.528334 _k_eq_p2 | 1.204847 .2464706 4.89 0.000 .7216999 1.687993 _k_eq_p3 | 1.124328 .3024511 3.72 0.000 .5314452 1.717212 _k_eq_p4 | 1.048144 .3597702 2.91 0.004 .3429007 1.753388 _k_eq_p5 | 1.216724 .4190667 2.90 0.004 .3952439 2.038204 _k_eq_p6 | 1.040801 .4736776 2.20 0.028 .1122692 1.969333 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . . * Test overlay plot . xteventplot, overlay(trend) . . . /* Must fail > xtevent y eta, policyvar(z) panelvar(z) window(5) trend(-3 5) > xtevent y eta, policyvar(z) timevar(z) window(5) trend(-3 5) > */ . . * Testing noci, nosupt, nozeroline, nonormlabel . xteventplot, noci option noci has been specified. Confidence intervals won't be displayed . xteventplot, nosupt option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated . xteventplot, nozeroline option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, nonormlabel option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . . * Must fail . * xtevent y eta if i<100, panelvar(i) timevar(t) policyvar(z) window(5) trend(-8 5) . . . * Test nofe, note . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) nofe trend(-3) plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(20, 8979) = 223.83 Model | 10714.0449 20 535.702247 Prob > F = 0.0000 Residual | 21489.5662 8,979 2.39331398 R-squared = 0.3327 -------------+---------------------------------- Adj R-squared = 0.3312 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.547 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.772216 .351057 -2.20 0.028 -1.460368 -.0840641 _k_eq_m5 | .0123947 .1672511 0.07 0.941 -.3154555 .340245 _k_eq_m4 | -.0995854 .2251797 -0.44 0.658 -.5409891 .3418183 _k_eq_m3 | .0016461 .168803 0.01 0.992 -.3292463 .3325385 _k_eq_m2 | -.0900653 .1425865 -0.63 0.528 -.3695674 .1894367 _k_eq_p0 | 1.214707 .2132375 5.70 0.000 .7967127 1.632701 _k_eq_p1 | 1.022035 .2815187 3.63 0.000 .4701944 1.573876 _k_eq_p2 | 1.032081 .3573722 2.89 0.004 .3315495 1.732612 _k_eq_p3 | .8821295 .4367447 2.02 0.043 .0260101 1.738249 _k_eq_p4 | .7622184 .5178715 1.47 0.141 -.2529279 1.777365 _k_eq_p5 | .9473825 .6007108 1.58 0.115 -.2301477 2.124913 _k_eq_p6 | .6734131 .6736773 1.00 0.318 -.6471482 1.993974 | t | 8 | .2515293 .0692194 3.63 0.000 .1158436 .3872151 9 | .3986636 .0692411 5.76 0.000 .2629352 .5343919 10 | .6083407 .0692928 8.78 0.000 .4725111 .7441703 11 | .7191093 .0693718 10.37 0.000 .5831247 .8550939 12 | .8605161 .0694641 12.39 0.000 .7243507 .9966816 13 | 1.060749 .0696039 15.24 0.000 .9243096 1.197189 14 | 1.197118 .0698006 17.15 0.000 1.060293 1.333943 15 | 1.423055 .0700362 20.32 0.000 1.285768 1.560342 | _cons | 2.412556 .1217971 19.81 0.000 2.173806 2.651306 ------------------------------------------------------------------------------ . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) nofe note trend(-3) plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(12, 8987) = 294.16 Model | 9081.69274 12 756.807728 Prob > F = 0.0000 Residual | 23121.9184 8,987 2.57281834 R-squared = 0.2820 -------------+---------------------------------- Adj R-squared = 0.2810 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.604 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.7836749 .3638895 -2.15 0.031 -1.496981 -.0703686 _k_eq_m5 | -.0179179 .173371 -0.10 0.918 -.3577647 .3219289 _k_eq_m4 | -.1402394 .2333784 -0.60 0.548 -.5977144 .3172355 _k_eq_m3 | .0012165 .1749656 0.01 0.994 -.3417559 .344189 _k_eq_m2 | -.0661581 .14781 -0.45 0.654 -.3558993 .2235831 _k_eq_p0 | 1.268202 .2210241 5.74 0.000 .8349442 1.701459 _k_eq_p1 | 1.103842 .2918199 3.78 0.000 .5318081 1.675875 _k_eq_p2 | 1.157322 .3704291 3.12 0.002 .4311963 1.883447 _k_eq_p3 | 1.050273 .4527034 2.32 0.020 .1628713 1.937675 _k_eq_p4 | 1.017527 .5367595 1.90 0.058 -.0346439 2.069698 _k_eq_p5 | 1.289366 .6226063 2.07 0.038 .0689157 2.509816 _k_eq_p6 | 1.211323 .6980525 1.74 0.083 -.1570187 2.579665 _cons | 3.076781 .117611 26.16 0.000 2.846237 3.307326 ------------------------------------------------------------------------------ . . * Test savek . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) savek(a) trend(-3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.2058035 .2454172 -0.84 0.402 -.6868853 .2752783 _k_eq_m5 | .0218079 .1214276 0.18 0.857 -.216222 .2598378 _k_eq_m4 | -.052295 .1562626 -0.33 0.738 -.3586106 .2540206 _k_eq_m3 | .0007745 .1164445 0.01 0.995 -.2274871 .2290361 _k_eq_m2 | -.0562325 .0971349 -0.58 0.563 -.2466423 .1341774 _k_eq_p0 | 1.302233 .144724 9.00 0.000 1.018536 1.58593 _k_eq_p1 | 1.15011 .1929457 5.96 0.000 .7718865 1.528334 _k_eq_p2 | 1.204847 .2464706 4.89 0.000 .7216999 1.687993 _k_eq_p3 | 1.124328 .3024511 3.72 0.000 .5314452 1.717212 _k_eq_p4 | 1.048144 .3597702 2.91 0.004 .3429007 1.753388 _k_eq_p5 | 1.216724 .4190667 2.90 0.004 .3952439 2.038204 _k_eq_p6 | 1.040801 .4736776 2.20 0.028 .1122692 1.969333 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . des a_eq*, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_eq_m6 double %10.0g Event time <= - 6 a_eq_m5 double %10.0g Event-time = - 5 a_eq_m4 double %10.0g Event-time = - 4 a_eq_m3 double %10.0g Event-time = - 3 a_eq_m2 double %10.0g Event-time = - 2 a_eq_m1 double %10.0g Event-time = - 1 a_eq_p0 double %10.0g Event-time = + 0 a_eq_p1 double %10.0g Event-time = + 1 a_eq_p2 double %10.0g Event-time = + 2 a_eq_p3 double %10.0g Event-time = + 3 a_eq_p4 double %10.0g Event-time = + 4 a_eq_p5 double %10.0g Event-time = + 5 a_eq_p6 double %10.0g Event time >= + 6 . des a_evtime, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_evtime long %12.0g . drop a_* . . * Test factor variables in varlist . cap gen pois=rpoisson(5) . xtevent y i.pois, panelvar(i) timevar(t) policyvar(z) window(5) trend(-3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(35, 7965) = 96.39 Prob > F = 0.0000 R-squared = 0.7324 Adj R-squared = 0.6976 Root MSE = 1.0402 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.2099702 .2457568 -0.85 0.393 -.6917179 .2717776 _k_eq_m5 | .0156374 .1215877 0.13 0.898 -.2227063 .2539812 _k_eq_m4 | -.0571621 .1564744 -0.37 0.715 -.363893 .2495687 _k_eq_m3 | .000834 .1166391 0.01 0.994 -.2278093 .2294772 _k_eq_m2 | -.0619867 .0972376 -0.64 0.524 -.2525978 .1286244 _k_eq_p0 | 1.294855 .1450112 8.93 0.000 1.010595 1.579114 _k_eq_p1 | 1.142991 .193206 5.92 0.000 .7642571 1.521726 _k_eq_p2 | 1.190888 .246905 4.82 0.000 .7068892 1.674886 _k_eq_p3 | 1.118488 .3028727 3.69 0.000 .5247779 1.712198 _k_eq_p4 | 1.035009 .3602901 2.87 0.004 .3287463 1.741272 _k_eq_p5 | 1.206918 .4196482 2.88 0.004 .3842975 2.029538 _k_eq_p6 | 1.030105 .4742596 2.17 0.030 .1004323 1.959778 | pois | 1 | .0626228 .1566145 0.40 0.689 -.2443826 .3696281 2 | .0339766 .149743 0.23 0.821 -.2595589 .3275121 3 | .0088795 .1478389 0.06 0.952 -.2809236 .2986825 4 | -.0141966 .1469361 -0.10 0.923 -.3022299 .2738366 5 | -.0323782 .1468203 -0.22 0.825 -.3201843 .255428 6 | .0126241 .147624 0.09 0.932 -.2767577 .3020058 7 | -.0301871 .1486737 -0.20 0.839 -.3216264 .2612522 8 | -.0013228 .1516526 -0.01 0.993 -.2986016 .295956 9 | .04236 .1562048 0.27 0.786 -.2638424 .3485624 10 | .0367321 .1717083 0.21 0.831 -.2998611 .3733253 11 | -.008353 .2059633 -0.04 0.968 -.412095 .395389 12 | -.2475033 .3117893 -0.79 0.427 -.8586919 .3636853 13 | -.1305391 .3290274 -0.40 0.692 -.775519 .5144408 14 | -.6037173 .5150574 -1.17 0.241 -1.613365 .4059301 15 | 1.380433 .7949455 1.74 0.083 -.1778682 2.938735 | t | 8 | .2610834 .0466379 5.60 0.000 .1696609 .3525058 9 | .4142567 .0468623 8.84 0.000 .3223943 .506119 10 | .626535 .0471653 13.28 0.000 .5340787 .7189913 11 | .7356231 .0476333 15.44 0.000 .6422494 .8289968 12 | .8814981 .0482769 18.26 0.000 .7868628 .9761334 13 | 1.083559 .0490478 22.09 0.000 .9874121 1.179705 14 | 1.218961 .0499178 24.42 0.000 1.121109 1.316812 15 | 1.446585 .0509029 28.42 0.000 1.346802 1.546368 | _cons | 1.944542 .1797745 10.82 0.000 1.592137 2.296947 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7965) = 11.866 Prob > F = 0.000 . cap drop pois . * Test time series variables in varlist . . xtevent y l.eta , panelvar(i) timevar(t) policyvar(z) window(5) trend(-3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 178.89 Prob > F = 0.0000 R-squared = 0.7410 Adj R-squared = 0.7079 Root MSE = 1.0225 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.1905992 .2418811 -0.79 0.431 -.6647494 .2835509 _k_eq_m5 | -.0172881 .1205073 -0.14 0.886 -.253514 .2189377 _k_eq_m4 | -.0598661 .154064 -0.39 0.698 -.3618719 .2421397 _k_eq_m3 | .0006803 .1147142 0.01 0.995 -.2241896 .2255502 _k_eq_m2 | -.0507082 .0955625 -0.53 0.596 -.2380358 .1366193 _k_eq_p0 | 1.224529 .1422959 8.61 0.000 .9455924 1.503467 _k_eq_p1 | .8872155 .1899061 4.67 0.000 .5149498 1.259481 _k_eq_p2 | .9899751 .2423391 4.09 0.000 .5149271 1.465023 _k_eq_p3 | .9615866 .2973976 3.23 0.001 .3786097 1.544564 _k_eq_p4 | .9313568 .35388 2.63 0.009 .2376594 1.625054 _k_eq_p5 | 1.153426 .4123855 2.80 0.005 .3450426 1.961809 _k_eq_p6 | 1.017295 .4662936 2.18 0.029 .1032378 1.931353 | eta | L1. | .1672026 .0100676 16.61 0.000 .1474675 .1869378 | t | 8 | .2726674 .0458129 5.95 0.000 .1828621 .3624727 9 | .4416902 .0460325 9.60 0.000 .3514544 .531926 10 | .671576 .0464139 14.47 0.000 .5805927 .7625594 11 | .7940153 .0469168 16.92 0.000 .7020461 .8859845 12 | .9630645 .0476763 20.20 0.000 .8696065 1.056523 13 | 1.183873 .0485588 24.38 0.000 1.088685 1.279061 14 | 1.341169 .0495968 27.04 0.000 1.243947 1.438392 15 | 1.58076 .0506567 31.21 0.000 1.48146 1.68006 | _cons | 1.626315 .106004 15.34 0.000 1.41852 1.834111 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 9.944 Prob > F = 0.000 . . * Test asymmetric window . * Must fail . * xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(-4 2) trend(-3 5) . xtevent y , panelvar(i) timevar(t) policyvar(z) window(-4 6) trend(-3) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 162.37 Prob > F = 0.0000 R-squared = 0.7425 Adj R-squared = 0.7097 Root MSE = 1.0393 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | -.2779749 .1884818 -1.47 0.140 -.6474486 .0914987 _k_eq_m4 | .0142402 .0594551 0.24 0.811 -.1023072 .1307877 _k_eq_m3 | .0001242 .114841 0.00 0.999 -.2249941 .2252425 _k_eq_m2 | -.0045635 .0970425 -0.05 0.962 -.1947922 .1856651 _k_eq_p0 | 1.374762 .1468815 9.36 0.000 1.086836 1.662688 _k_eq_p1 | 1.198331 .1945561 6.16 0.000 .8169505 1.579712 _k_eq_p2 | 1.265622 .2469504 5.13 0.000 .7815349 1.74971 _k_eq_p3 | 1.244678 .3020339 4.12 0.000 .6526126 1.836743 _k_eq_p4 | 1.21234 .3584995 3.38 0.001 .5095876 1.915093 _k_eq_p5 | 1.296341 .41576 3.12 0.002 .4813425 2.111339 _k_eq_p6 | 1.169561 .4747985 2.46 0.014 .2388319 2.10029 _k_eq_p7 | 1.150923 .5297156 2.17 0.030 .1125424 2.189304 | t | 9 | .1536023 .0465611 3.30 0.001 .0623305 .2448742 10 | .3664564 .0467564 7.84 0.000 .2748017 .4581111 11 | .4772554 .047092 10.13 0.000 .3849428 .569568 12 | .624587 .0475572 13.13 0.000 .5313625 .7178114 13 | .8261976 .0481997 17.14 0.000 .7317136 .9206816 14 | .9574148 .0489705 19.55 0.000 .8614199 1.05341 15 | 1.187669 .0498328 23.83 0.000 1.089984 1.285355 16 | 1.370349 .0508139 26.97 0.000 1.270741 1.469958 | _cons | 2.120945 .1026868 20.65 0.000 1.919652 2.322238 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 12.245 Prob > F = 0.000 . . * Test overlay plot . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) trend(-3, saveov) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.2058035 .2454172 -0.84 0.402 -.6868853 .2752783 _k_eq_m5 | .0218079 .1214276 0.18 0.857 -.216222 .2598378 _k_eq_m4 | -.052295 .1562626 -0.33 0.738 -.3586106 .2540206 _k_eq_m3 | .0007745 .1164445 0.01 0.995 -.2274871 .2290361 _k_eq_m2 | -.0562325 .0971349 -0.58 0.563 -.2466423 .1341774 _k_eq_p0 | 1.302233 .144724 9.00 0.000 1.018536 1.58593 _k_eq_p1 | 1.15011 .1929457 5.96 0.000 .7718865 1.528334 _k_eq_p2 | 1.204847 .2464706 4.89 0.000 .7216999 1.687993 _k_eq_p3 | 1.124328 .3024511 3.72 0.000 .5314452 1.717212 _k_eq_p4 | 1.048144 .3597702 2.91 0.004 .3429007 1.753388 _k_eq_p5 | 1.216724 .4190667 2.90 0.004 .3952439 2.038204 _k_eq_p6 | 1.040801 .4736776 2.20 0.028 .1122692 1.969333 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xteventplot, overlay(trend) . . *------------------------ 2.6: Hypotheses tests ---------------------------------- . . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(21, 11979) = 572.74 Prob > F = 0.0000 R-squared = 0.7653 Adj R-squared = 0.7453 Root MSE = 1.0058 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | .1354244 .0756957 1.79 0.074 -.0129515 .2838003 _k_eq_m3 | .1927795 .0902369 2.14 0.033 .0159005 .3696585 _k_eq_m2 | .1540638 .0894043 1.72 0.085 -.0211831 .3293106 _k_eq_p0 | 1.068977 .0892098 11.98 0.000 .8941116 1.243843 _k_eq_p1 | 1.006862 .0907016 11.10 0.000 .8290722 1.184652 _k_eq_p2 | 1.062882 .0922647 11.52 0.000 .8820284 1.243736 _k_eq_p3 | 1.031628 .0947797 10.88 0.000 .8458445 1.217412 _k_eq_p4 | 1.056418 .0782796 13.50 0.000 .9029772 1.209858 eta | .2593535 .0068421 37.91 0.000 .2459418 .2727651 | t | 6 | .1795681 .0450092 3.99 0.000 .0913429 .2677934 7 | .347742 .0450596 7.72 0.000 .2594178 .4360661 8 | .630268 .0451644 13.95 0.000 .5417385 .7187975 9 | .8095375 .0453086 17.87 0.000 .7207253 .8983497 10 | 1.040501 .0454959 22.87 0.000 .9513215 1.12968 11 | 1.187814 .0457683 25.95 0.000 1.098101 1.277527 12 | 1.362563 .0460682 29.58 0.000 1.272262 1.452864 13 | 1.605032 .0464086 34.58 0.000 1.514063 1.696 14 | 1.75353 .0467701 37.49 0.000 1.661854 1.845207 15 | 1.989215 .0471243 42.21 0.000 1.896844 2.081587 16 | 2.211903 .0475437 46.52 0.000 2.11871 2.305097 17 | 2.415992 .0479468 50.39 0.000 2.322008 2.509975 | _cons | .9034138 .0791741 11.41 0.000 .7482197 1.058608 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11979) = 14.229 Prob > F = 0.000 . . xteventtest, coefs(1 2) ( 1) _k_eq_p1 = 0 ( 2) _k_eq_p2 = 0 F( 2, 11979) = 85.53 Prob > F = 0.0000 . xteventtest, coefs(1 2) cumul Test sums of coefficients ( 1) _k_eq_p1 + _k_eq_p2 = 0 F( 1, 11979) = 170.94 Prob > F = 0.0000 . xteventtest, coefs(-2 -3) ( 1) _k_eq_m2 = 0 ( 2) _k_eq_m3 = 0 F( 2, 11979) = 2.58 Prob > F = 0.0761 . xteventtest, allpre Test for all pre-event coefficients = 0 ( 1) _k_eq_m4 = 0 ( 2) _k_eq_m3 = 0 ( 3) _k_eq_m2 = 0 F( 3, 11979) = 1.74 Prob > F = 0.1566 . xteventtest, allpre cumul Test for all pre-event coefficients = 0 Test sums of coefficients ( 1) _k_eq_m4 + _k_eq_m3 + _k_eq_m2 = 0 F( 1, 11979) = 4.98 Prob > F = 0.0256 . xteventtest, allpost Test for all post-event coefficients = 0 ( 1) _k_eq_p0 = 0 ( 2) _k_eq_p1 = 0 ( 3) _k_eq_p2 = 0 ( 4) _k_eq_p3 = 0 ( 5) _k_eq_p4 = 0 F( 5, 11979) = 44.66 Prob > F = 0.0000 . xteventtest, allpost cumul Test for all post-event coefficients = 0 Test sums of coefficients ( 1) _k_eq_p0 + _k_eq_p1 + _k_eq_p2 + _k_eq_p3 + _k_eq_p4 = 0 F( 1, 11979) = 219.10 Prob > F = 0.0000 . xteventtest, coefs(1 2) testopts(coef) ( 1) _k_eq_p1 = 0 ( 2) _k_eq_p2 = 0 F( 2, 11979) = 85.53 Prob > F = 0.0000 Constrained coefficients ------------------------------------------------------------------------------ | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | -.4309127 .0620137 -6.95 0.000 -.5524574 -.309368 _k_eq_m3 | -.4184633 .0771514 -5.42 0.000 -.5696773 -.2672494 _k_eq_m2 | -.4695899 .075589 -6.21 0.000 -.6177416 -.3214382 _k_eq_p0 | .3974088 .0729196 5.45 0.000 .254489 .5403287 _k_eq_p1 | 0 (omitted) _k_eq_p2 | -2.22e-16 . . . . . _k_eq_p3 | .33181 .0782141 4.24 0.000 .1785132 .4851068 _k_eq_p4 | .329905 .055141 5.98 0.000 .2218306 .4379795 eta | .2725277 .0067675 40.27 0.000 .2592635 .2857918 | t | 6 | .1872903 .0450053 4.16 0.000 .0990816 .2754989 7 | .3551906 .045056 7.88 0.000 .2668825 .4434987 8 | .6479289 .0451421 14.35 0.000 .5594521 .7364057 9 | .8307415 .0452795 18.35 0.000 .7419953 .9194878 10 | 1.064703 .0454506 23.43 0.000 .9756219 1.153785 11 | 1.215921 .0457167 26.60 0.000 1.126318 1.305524 12 | 1.392897 .0460076 30.28 0.000 1.302724 1.48307 13 | 1.639145 .0463299 35.38 0.000 1.54834 1.72995 14 | 1.792725 .0466725 38.41 0.000 1.701248 1.884201 15 | 2.033178 .0469996 43.26 0.000 1.94106 2.125295 16 | 2.25316 .0474322 47.50 0.000 2.160195 2.346126 17 | 2.458771 .0478287 51.41 0.000 2.365028 2.552513 | _cons | 1.468441 .0662724 22.16 0.000 1.33855 1.598333 ------------------------------------------------------------------------------ . xteventtest, linpretrend Specification test for linear pre-trend chi2( 1) =.43 Prob > chi2 =.5101 . xteventtest, overidpre(2) Overidentification test for pretrends: 2 pre-event coefficients are 0 ( 1) _k_eq_m4 = 0 ( 2) _k_eq_m3 = 0 F( 2, 11979) = 2.44 Prob > F = 0.0870 . xteventtest, overidpost(3) Overidentification test for effects leveling off: 3 last post-event coefficients are equal ( 1) - _k_eq_p3 + _k_eq_p4 = 0 ( 2) - _k_eq_p2 + _k_eq_p4 = 0 F( 2, 11979) = 0.07 Prob > F = 0.9368 . xteventtest, overid Overidentification test for pretrends: 3 pre-event coefficients are 0 Overidentification test for effects leveling off: 2 last post-event coefficients are equal Overidentification test for pretrends: 3 pre-event coefficients are 0 ( 1) _k_eq_m4 = 0 ( 2) _k_eq_m3 = 0 ( 3) _k_eq_m2 = 0 F( 3, 11979) = 1.74 Prob > F = 0.1566 Overidentification test for effects leveling off: 2 last post-event coefficients are equal ( 1) - _k_eq_p3 + _k_eq_p4 = 0 F( 1, 11979) = 0.10 Prob > F = 0.7478 Joint overidentification test ( 1) _k_eq_m4 = 0 ( 2) _k_eq_m3 = 0 ( 3) _k_eq_m2 = 0 ( 4) - _k_eq_p3 + _k_eq_p4 = 0 F( 4, 11979) = 1.34 Prob > F = 0.2519 . . cap log close
Texto alterado
Abrir arquivo
. . clear all . . /*========================================================================= > 1: Load data > ===========================================================================*/ . use "example31.dta", clear . . . /*========================================================================= > 2: Run tests > ===========================================================================*/ . . graph drop _all . . *------------------------ 2.1: Replicate 2a and test basic funcionality ---------------------------------- . . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . . * Testing xtset options . . xtevent y eta, policyvar(z) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xtevent y eta, policyvar(z) panelvar(i) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xtevent y eta, policyvar(z) timevar(t) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . . . /* Must fail > xtevent y eta, policyvar(z) panelvar(z) window(5) > xtevent y eta, policyvar(z) timevar(z) window(5) > */ . . * Testing noci, nosupt, nozeroline, nonormlabel . xtevent y eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, noci option noci has been specified. Confidence intervals won't be displayed . xteventplot, nosupt option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated . xteventplot, nozeroline option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, nonormlabel option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . . * Test combinations . xteventplot, noci nozeroline option noci has been specified. Confidence intervals won't be displayed option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, noci nonormlabel option noci has been specified. Confidence intervals won't be displayed option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . xteventplot, nosupt nozeroline option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, nosupt nonormlabel option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . . * A common axis plot with labels . gen y2 = y + 5 . xtevent y eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . loc lab : di %-9.2f `=e(y1)' . loc lab=strtrim("`lab'") . xteventplot, nonormlabel ylab(-3 0 `"0 (`lab')"' 3) name(g1) /* " */ option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . xtevent y2 eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y2 | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011971 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581162 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579538 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343268 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .2823779 .0446025 6.33 0.000 .1949453 .3698105 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251372 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 6.314217 .1041623 60.62 0.000 6.110031 6.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . loc lab : di %-9.2f `=e(y1)' . loc lab=strtrim("`lab'") . xteventplot, nonormlabel ylab(-3 0 `"0 (`lab')"' 3) name(g2) /* " */ option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . graph combine g1 g2 . drop y2 . . * Test if/in . xtevent y eta if i<100, panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 891 Absorbed variable: i No. of categories = 99 F(21, 771) = 19.21 Prob > F = 0.0000 R-squared = 0.7712 Adj R-squared = 0.7359 Root MSE = 1.0356 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.2882097 .351599 -0.82 0.413 -.9784146 .4019952 _k_eq_m5 | -.6923773 .3927855 -1.76 0.078 -1.463433 .0786785 _k_eq_m4 | -.0932655 .3525298 -0.26 0.791 -.7852976 .5987666 _k_eq_m3 | -.068185 .3384769 -0.20 0.840 -.7326305 .5962605 _k_eq_m2 | -.3234206 .3406932 -0.95 0.343 -.992217 .3453757 _k_eq_p0 | .5722541 .3342813 1.71 0.087 -.0839554 1.228464 _k_eq_p1 | .9961526 .3417043 2.92 0.004 .3253715 1.666934 _k_eq_p2 | .7954004 .3524217 2.26 0.024 .1035806 1.48722 _k_eq_p3 | .8880688 .3628256 2.45 0.015 .1758256 1.600312 _k_eq_p4 | 1.039313 .3719825 2.79 0.005 .3090946 1.769532 _k_eq_p5 | .7272531 .4206243 1.73 0.084 -.0984516 1.552958 _k_eq_p6 | 1.130298 .3799306 2.98 0.003 .3844768 1.876119 eta | .2931345 .0317117 9.24 0.000 .230883 .3553859 | t | 8 | .1353235 .1483005 0.91 0.362 -.1557973 .4264442 9 | .3299903 .1494705 2.21 0.028 .0365729 .6234077 10 | .6997617 .149972 4.67 0.000 .4053599 .9941635 11 | .7722895 .1521045 5.08 0.000 .4737015 1.070877 12 | .6634922 .1548708 4.28 0.000 .3594738 .9675106 13 | .9715054 .1587839 6.12 0.000 .6598053 1.283206 14 | 1.223305 .1617834 7.56 0.000 .9057173 1.540894 15 | 1.393352 .1650083 8.44 0.000 1.069433 1.71727 | _cons | 1.65819 .3280156 5.06 0.000 1.01428 2.3021 ------------------------------------------------------------------------------ F test of absorbed indicators: F(98, 771) = 9.741 Prob > F = 0.000 . xtevent y eta in 1/600 , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 270 Absorbed variable: i No. of categories = 30 F(21, 219) = 6.20 Prob > F = 0.0000 R-squared = 0.7716 Adj R-squared = 0.7195 Root MSE = 0.9710 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.8846858 .6146396 -1.44 0.151 -2.096051 .3266799 _k_eq_m5 | -1.511945 .7176761 -2.11 0.036 -2.926381 -.0975093 _k_eq_m4 | -1.125237 .5769534 -1.95 0.052 -2.262329 .0118543 _k_eq_m3 | -.8016579 .5797806 -1.38 0.168 -1.944322 .3410058 _k_eq_m2 | -.5515958 .5741756 -0.96 0.338 -1.683213 .5800212 _k_eq_p0 | -.9278853 .5968318 -1.55 0.121 -2.104154 .2483838 _k_eq_p1 | .3008111 .598337 0.50 0.616 -.8784247 1.480047 _k_eq_p2 | .2165589 .6245545 0.35 0.729 -1.014348 1.447465 _k_eq_p3 | .6288715 .634314 0.99 0.323 -.6212697 1.879013 _k_eq_p4 | -.5954431 .6327738 -0.94 0.348 -1.842549 .6516626 _k_eq_p5 | -.0583329 .8846871 -0.07 0.947 -1.801923 1.685257 _k_eq_p6 | -.08321 .7234002 -0.12 0.909 -1.508927 1.342507 eta | .3001024 .0668471 4.49 0.000 .1683564 .4318484 | t | 8 | -.020585 .2574219 -0.08 0.936 -.5279264 .4867563 9 | -.0221011 .2590484 -0.09 0.932 -.532648 .4884457 10 | .1382234 .256677 0.54 0.591 -.3676499 .6440967 11 | .5352765 .2607022 2.05 0.041 .0214702 1.049083 12 | .5164232 .2678668 1.93 0.055 -.0115036 1.04435 13 | .8705216 .270285 3.22 0.001 .3378289 1.403214 14 | 1.166826 .2800071 4.17 0.000 .6149729 1.71868 15 | 1.284314 .2797046 4.59 0.000 .7330568 1.835572 | _cons | 2.304379 .5746441 4.01 0.000 1.171839 3.43692 ------------------------------------------------------------------------------ F test of absorbed indicators: F(29, 219) = 8.771 Prob > F = 0.000 . xtevent y eta in 1/600 if i<30 , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 261 Absorbed variable: i No. of categories = 29 F(21, 211) = 5.76 Prob > F = 0.0000 R-squared = 0.7595 Adj R-squared = 0.7037 Root MSE = 0.9726 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.015216 .7168241 -1.42 0.158 -2.42827 .3978387 _k_eq_m5 | -1.658287 .8373915 -1.98 0.049 -3.309012 -.0075615 _k_eq_m4 | -1.105774 .635079 -1.74 0.083 -2.357686 .146139 _k_eq_m3 | -.7092365 .6437462 -1.10 0.272 -1.978234 .5597615 _k_eq_m2 | -.9643356 .6405377 -1.51 0.134 -2.227009 .2983375 _k_eq_p0 | -.9761085 .6218087 -1.57 0.118 -2.201862 .2496447 _k_eq_p1 | .1968436 .6253555 0.31 0.753 -1.035901 1.429589 _k_eq_p2 | .1358553 .6433918 0.21 0.833 -1.132444 1.404155 _k_eq_p3 | .6236733 .6539087 0.95 0.341 -.6653577 1.912704 _k_eq_p4 | -.6851148 .6587855 -1.04 0.300 -1.983759 .6135298 _k_eq_p5 | -.1484296 .8979531 -0.17 0.869 -1.918538 1.621679 _k_eq_p6 | -.1287198 .7422298 -0.17 0.862 -1.591856 1.334416 eta | .2986605 .0676582 4.41 0.000 .1652879 .4320331 | t | 8 | .0033689 .2638975 0.01 0.990 -.5168445 .5235823 9 | .0628873 .265822 0.24 0.813 -.4611199 .5868945 10 | .113526 .2624641 0.43 0.666 -.4038617 .6309137 11 | .5493061 .2653795 2.07 0.040 .0261712 1.072441 12 | .5769833 .2753272 2.10 0.037 .0342389 1.119728 13 | .9129786 .274476 3.33 0.001 .3719121 1.454045 14 | 1.10676 .2849671 3.88 0.000 .5450125 1.668507 15 | 1.334183 .2842621 4.69 0.000 .7738253 1.89454 | _cons | 2.34292 .6584314 3.56 0.000 1.044973 3.640866 ------------------------------------------------------------------------------ F test of absorbed indicators: F(28, 211) = 8.235 Prob > F = 0.000 . . * Test nofe, note . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) nofe plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(21, 8978) = 332.33 Model | 14084.5946 21 670.694983 Prob > F = 0.0000 Residual | 18119.0165 8,978 2.01815733 R-squared = 0.4374 -------------+---------------------------------- Adj R-squared = 0.4360 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.4206 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.1297411 .1091722 -1.19 0.235 -.3437436 .0842613 _k_eq_m5 | .0833995 .1541475 0.54 0.588 -.2187648 .3855639 _k_eq_m4 | -.0033477 .1524864 -0.02 0.982 -.3022558 .2955604 _k_eq_m3 | .1157061 .1496123 0.77 0.439 -.1775681 .4089803 _k_eq_m2 | .0059458 .1490692 0.04 0.968 -.2862638 .2981554 _k_eq_p0 | .9222068 .1468935 6.28 0.000 .6342621 1.210152 _k_eq_p1 | .8169586 .1463388 5.58 0.000 .5301012 1.103816 _k_eq_p2 | .9037735 .1477369 6.12 0.000 .6141754 1.193372 _k_eq_p3 | .8305188 .1507872 5.51 0.000 .5349414 1.126096 _k_eq_p4 | .8316027 .15478 5.37 0.000 .5281986 1.135007 _k_eq_p5 | 1.040814 .1621225 6.42 0.000 .7230164 1.358611 _k_eq_p6 | .8832319 .1303447 6.78 0.000 .6277265 1.138737 eta | .2627077 .0064284 40.87 0.000 .2501067 .2753088 | t | 8 | .2809535 .0635672 4.42 0.000 .1563473 .4055598 9 | .4581126 .0635997 7.20 0.000 .3334425 .5827826 10 | .6865414 .0636593 10.78 0.000 .5617546 .8113281 11 | .8333159 .0637644 13.07 0.000 .7083231 .9583087 12 | 1.006002 .0638871 15.75 0.000 .8807688 1.131235 13 | 1.245761 .0640764 19.44 0.000 1.120157 1.371365 14 | 1.396131 .0642816 21.72 0.000 1.270124 1.522137 15 | 1.629537 .0645114 25.26 0.000 1.50308 1.755994 | _cons | 1.489907 .1141005 13.06 0.000 1.266244 1.71357 ------------------------------------------------------------------------------ . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) nofe note plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(13, 8986) = 405.50 Model | 11906.8789 13 915.913763 Prob > F = 0.0000 Residual | 20296.7323 8,986 2.25870601 R-squared = 0.3697 -------------+---------------------------------- Adj R-squared = 0.3688 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.5029 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.1929318 .1154549 -1.67 0.095 -.4192498 .0333862 _k_eq_m5 | .0480947 .1630327 0.29 0.768 -.2714867 .367676 _k_eq_m4 | -.0535286 .1612917 -0.33 0.740 -.3696971 .2626399 _k_eq_m3 | .1070616 .1582432 0.68 0.499 -.2031312 .4172543 _k_eq_m2 | .025313 .1576667 0.16 0.872 -.2837496 .3343756 _k_eq_p0 | 1.007755 .1553343 6.49 0.000 .7032643 1.312246 _k_eq_p1 | .9254795 .1547496 5.98 0.000 .6221349 1.228824 _k_eq_p2 | 1.05248 .1561936 6.74 0.000 .7463053 1.358656 _k_eq_p3 | 1.021118 .1593501 6.41 0.000 .7087553 1.33348 _k_eq_p4 | 1.109095 .1634636 6.78 0.000 .7886695 1.429521 _k_eq_p5 | 1.415088 .1710464 8.27 0.000 1.079798 1.750378 _k_eq_p6 | 1.468944 .1364843 10.76 0.000 1.201403 1.736484 eta | .2389588 .0067566 35.37 0.000 .2257143 .2522033 _cons | 2.332124 .1121914 20.79 0.000 2.112203 2.552045 ------------------------------------------------------------------------------ . . * Test smoothest line . xtevent eta, panelvar(i) timevar(t) policyvar(z) window(4) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 11,000 Absorbed variable: i No. of categories = 1,000 F(20, 9980) = 145.18 Prob > F = 0.0000 R-squared = 0.8646 Adj R-squared = 0.8507 Root MSE = 1.2464 ------------------------------------------------------------------------------ eta | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | -2.828136 .1064315 -26.57 0.000 -3.036763 -2.619509 _k_eq_m4 | -1.677028 .1240764 -13.52 0.000 -1.920243 -1.433813 _k_eq_m3 | -1.336378 .1222929 -10.93 0.000 -1.576097 -1.096659 _k_eq_m2 | -.8921123 .1185683 -7.52 0.000 -1.12453 -.6596945 _k_eq_p0 | 1.458456 .1185385 12.30 0.000 1.226096 1.690815 _k_eq_p1 | 1.640089 .1193893 13.74 0.000 1.406062 1.874117 _k_eq_p2 | 1.818459 .1215983 14.95 0.000 1.580102 2.056816 _k_eq_p3 | 2.036383 .1257121 16.20 0.000 1.789962 2.282804 _k_eq_p4 | 2.11163 .1315385 16.05 0.000 1.853788 2.369472 _k_eq_p5 | 2.373969 .1132438 20.96 0.000 2.151988 2.59595 | t | 7 | -.069634 .0557916 -1.25 0.212 -.1789968 .0397288 8 | -.1508391 .0558944 -2.70 0.007 -.2604034 -.0412748 9 | -.2464859 .0560989 -4.39 0.000 -.3564511 -.1365207 10 | -.3086252 .0563966 -5.47 0.000 -.4191738 -.1980765 11 | -.4407218 .0567634 -7.76 0.000 -.5519896 -.3294541 12 | -.5387938 .0572022 -9.42 0.000 -.6509217 -.426666 13 | -.6787502 .0577788 -11.75 0.000 -.7920082 -.5654922 14 | -.7380675 .058395 -12.64 0.000 -.8525335 -.6236015 15 | -.7471374 .0590178 -12.66 0.000 -.8628243 -.6314506 16 | -.8863071 .0597648 -14.83 0.000 -1.003458 -.769156 | _cons | 2.388192 .1077882 22.16 0.000 2.176906 2.599479 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 9980) = 29.433 Prob > F = 0.000 . xteventplot, smpath(scatter) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 18.3070381 Order 0 Wald value 2888.84103 Order 1 Wald value 519.967356 Order 2 Wald value 133.928595 Order 3 Wald value 112.44878 Order 4 Wald value 102.223602 Order 5 Wald value 56.6864304 Order 6 Wald value 22.8128592 Order 7 Wald value 22.7419107 Order 8 Wald value 9.27938467 (setting technique to nr) Iteration 0: f(p) = 46164996 (not concave) Iteration 1: f(p) = 46109859 (not concave) Iteration 2: f(p) = 46102811 (not concave) Iteration 3: f(p) = 46102316 (not concave) Iteration 4: f(p) = 46092836 (not concave) (switching technique to bfgs) Iteration 5: f(p) = 46092567 Iteration 6: f(p) = 46092566 Iteration 7: f(p) = 46092565 Iteration 8: f(p) = 46092565 Iteration 9: f(p) = 46092562 (switching technique to nr) Iteration 10: f(p) = 46092545 Iteration 11: f(p) = 46091975 (not concave) Iteration 12: f(p) = 46023841 (not concave) Iteration 13: f(p) = 46021814 (not concave) Iteration 14: f(p) = 46021637 (not concave) (switching technique to bfgs) Iteration 15: f(p) = 46021616 Iteration 16: f(p) = 46021616 Iteration 17: f(p) = 46021614 Iteration 18: f(p) = 46021613 Iteration 19: f(p) = 46021536 (switching technique to nr) Iteration 20: f(p) = 46021421 Hessian is not positive semidefinite (setting technique to nr) Iteration 0: f(p) = 46175610 (not concave) Iteration 1: f(p) = 46102071 (not concave) Iteration 2: f(p) = 46097347 (not concave) Iteration 3: f(p) = 46097077 (not concave) Iteration 4: f(p) = 46097013 (not concave) (switching technique to bfgs) BFGS stepping has contracted, resetting BFGS Hessian Iteration 5: f(p) = 46097002 BFGS stepping has contracted, resetting BFGS Hessian Iteration 6: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 7: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 8: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 9: f(p) = 46097002 (backed up) (switching technique to nr) Hessian is not positive semidefinite The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 4. See mf_optimize##r_error to see what that means. Error code = 4. See mf_optimize##r_error to see what that means. . xteventplot, smpath(line) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 18.3070381 Order 0 Wald value 2888.84103 Order 1 Wald value 519.967356 Order 2 Wald value 133.928595 Order 3 Wald value 112.44878 Order 4 Wald value 102.223602 Order 5 Wald value 56.6864304 Order 6 Wald value 22.8128592 Order 7 Wald value 22.7419107 Order 8 Wald value 9.27938467 (setting technique to nr) Iteration 0: f(p) = 46164996 (not concave) Iteration 1: f(p) = 46109859 (not concave) Iteration 2: f(p) = 46102811 (not concave) Iteration 3: f(p) = 46102316 (not concave) Iteration 4: f(p) = 46092836 (not concave) (switching technique to bfgs) Iteration 5: f(p) = 46092567 Iteration 6: f(p) = 46092566 Iteration 7: f(p) = 46092565 Iteration 8: f(p) = 46092565 Iteration 9: f(p) = 46092562 (switching technique to nr) Iteration 10: f(p) = 46092545 Iteration 11: f(p) = 46091975 (not concave) Iteration 12: f(p) = 46023841 (not concave) Iteration 13: f(p) = 46021814 (not concave) Iteration 14: f(p) = 46021637 (not concave) (switching technique to bfgs) Iteration 15: f(p) = 46021616 Iteration 16: f(p) = 46021616 Iteration 17: f(p) = 46021614 Iteration 18: f(p) = 46021613 Iteration 19: f(p) = 46021536 (switching technique to nr) Iteration 20: f(p) = 46021421 Hessian is not positive semidefinite (setting technique to nr) Iteration 0: f(p) = 46175610 (not concave) Iteration 1: f(p) = 46102071 (not concave) Iteration 2: f(p) = 46097347 (not concave) Iteration 3: f(p) = 46097077 (not concave) Iteration 4: f(p) = 46097013 (not concave) (switching technique to bfgs) BFGS stepping has contracted, resetting BFGS Hessian Iteration 5: f(p) = 46097002 BFGS stepping has contracted, resetting BFGS Hessian Iteration 6: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 7: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 8: f(p) = 46097002 (backed up) BFGS stepping has contracted, resetting BFGS Hessian Iteration 9: f(p) = 46097002 (backed up) (switching technique to nr) Hessian is not positive semidefinite The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 4. See mf_optimize##r_error to see what that means. Error code = 4. See mf_optimize##r_error to see what that means. . xteventplot, smpath(line, technique("nr 10 bfgs 10")) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 18.3070381 Order 0 Wald value 2888.84103 Order 1 Wald value 519.967356 Order 2 Wald value 133.928595 Order 3 Wald value 112.44878 Order 4 Wald value 102.223602 Order 5 Wald value 56.6864304 Order 6 Wald value 22.8128592 Order 7 Wald value 22.7419107 Order 8 Wald value 9.27938467 (setting technique to nr) Iteration 0: f(p) = 46164996 (not concave) Iteration 1: f(p) = 46109859 (not concave) Iteration 2: f(p) = 46102811 (not concave) Iteration 3: f(p) = 46102316 (not concave) Iteration 4: f(p) = 46092836 (not concave) Iteration 5: f(p) = 46092567 (not concave) Iteration 6: f(p) = 45994866 (not concave) Iteration 7: f(p) = 45898041 (not concave) Iteration 8: f(p) = 45896408 (not concave) Iteration 9: f(p) = 45881715 (not concave) (switching technique to bfgs) Iteration 10: f(p) = 45880998 Iteration 11: f(p) = 45880929 Iteration 12: f(p) = 45868963 Iteration 13: f(p) = 45863305 Iteration 14: f(p) = 45862989 (backed up) Iteration 15: f(p) = 45862989 (backed up) Iteration 16: f(p) = 45862989 (backed up) Iteration 17: f(p) = 45862960 Iteration 18: f(p) = 45862959 (backed up) Iteration 19: f(p) = 45858646 (switching technique to nr) Iteration 20: f(p) = 45858577 (not concave) Iteration 21: f(p) = 45857638 (not concave) Iteration 22: f(p) = 45857570 (not concave) Iteration 23: f(p) = 45855841 (not concave) Iteration 24: f(p) = 45855821 (not concave) Iteration 25: f(p) = 45855444 (not concave) Iteration 26: f(p) = 45855149 (not concave) Iteration 27: f(p) = 45663340 (not concave) Iteration 28: f(p) = 45654588 (not concave) Iteration 29: f(p) = 45653253 (not concave) (switching technique to bfgs) Iteration 30: f(p) = 45653209 Iteration 31: f(p) = 45653131 BFGS stepping has contracted, resetting BFGS Hessian Iteration 32: f(p) = 45649348 Iteration 33: f(p) = 45649291 (backed up) Iteration 34: f(p) = 45645823 (backed up) Iteration 35: f(p) = 45645218 (backed up) Iteration 36: f(p) = 45606313 (backed up) Iteration 37: f(p) = 45601956 (backed up) Iteration 38: f(p) = 45600241 (backed up) Iteration 39: f(p) = 45600185 (backed up) (switching technique to nr) Iteration 40: f(p) = 45600169 (backed up) Hessian is not positive semidefinite (setting technique to nr) Iteration 0: f(p) = 46175610 (not concave) Iteration 1: f(p) = 46102071 (not concave) Iteration 2: f(p) = 46097347 (not concave) Iteration 3: f(p) = 46097077 (not concave) Iteration 4: f(p) = 46097013 (not concave) Hessian is not positive semidefinite The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 4. See mf_optimize##r_error to see what that means. Error code = 4. See mf_optimize##r_error to see what that means. . . * Test more suptreps . . cap graph drop g1 . cap graph drop g2 . . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(21, 11979) = 572.74 Prob > F = 0.0000 R-squared = 0.7653 Adj R-squared = 0.7453 Root MSE = 1.0058 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | .1354244 .0756957 1.79 0.074 -.0129515 .2838003 _k_eq_m3 | .1927795 .0902369 2.14 0.033 .0159005 .3696585 _k_eq_m2 | .1540638 .0894043 1.72 0.085 -.0211831 .3293106 _k_eq_p0 | 1.068977 .0892098 11.98 0.000 .8941116 1.243843 _k_eq_p1 | 1.006862 .0907016 11.10 0.000 .8290722 1.184652 _k_eq_p2 | 1.062882 .0922647 11.52 0.000 .8820284 1.243736 _k_eq_p3 | 1.031628 .0947797 10.88 0.000 .8458445 1.217412 _k_eq_p4 | 1.056418 .0782796 13.50 0.000 .9029772 1.209858 eta | .2593535 .0068421 37.91 0.000 .2459418 .2727651 | t | 6 | .1795681 .0450092 3.99 0.000 .0913429 .2677934 7 | .347742 .0450596 7.72 0.000 .2594178 .4360661 8 | .630268 .0451644 13.95 0.000 .5417385 .7187975 9 | .8095375 .0453086 17.87 0.000 .7207253 .8983497 10 | 1.040501 .0454959 22.87 0.000 .9513215 1.12968 11 | 1.187814 .0457683 25.95 0.000 1.098101 1.277527 12 | 1.362563 .0460682 29.58 0.000 1.272262 1.452864 13 | 1.605032 .0464086 34.58 0.000 1.514063 1.696 14 | 1.75353 .0467701 37.49 0.000 1.661854 1.845207 15 | 1.989215 .0471243 42.21 0.000 1.896844 2.081587 16 | 2.211903 .0475437 46.52 0.000 2.11871 2.305097 17 | 2.415992 .0479468 50.39 0.000 2.322008 2.509975 | _cons | .9034138 .0791741 11.41 0.000 .7482197 1.058608 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11979) = 14.229 Prob > F = 0.000 . xteventplot, suptreps(20) name(g1) . xteventplot, suptreps(1e6) name(g2) . . graph combine g1 g2, rows(1) . . graph drop g1 . graph drop g2 . . * Test savek . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) savek(a) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . des a_eq*, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_eq_m6 double %10.0g Event time <= - 6 a_eq_m5 double %10.0g Event-time = - 5 a_eq_m4 double %10.0g Event-time = - 4 a_eq_m3 double %10.0g Event-time = - 3 a_eq_m2 double %10.0g Event-time = - 2 a_eq_m1 double %10.0g Event-time = - 1 a_eq_p0 double %10.0g Event-time = + 0 a_eq_p1 double %10.0g Event-time = + 1 a_eq_p2 double %10.0g Event-time = + 2 a_eq_p3 double %10.0g Event-time = + 3 a_eq_p4 double %10.0g Event-time = + 4 a_eq_p5 double %10.0g Event-time = + 5 a_eq_p6 double %10.0g Event time >= + 6 . des a_evtime, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_evtime long %12.0g . drop a* . . * Test savek with suboption noestimate . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) savek(a, noe) No proxy or instruments provided. Implementing OLS estimator . des a_eq*, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_eq_m6 double %10.0g Event time <= - 6 a_eq_m5 double %10.0g Event-time = - 5 a_eq_m4 double %10.0g Event-time = - 4 a_eq_m3 double %10.0g Event-time = - 3 a_eq_m2 double %10.0g Event-time = - 2 a_eq_m1 double %10.0g Event-time = - 1 a_eq_p0 double %10.0g Event-time = + 0 a_eq_p1 double %10.0g Event-time = + 1 a_eq_p2 double %10.0g Event-time = + 2 a_eq_p3 double %10.0g Event-time = + 3 a_eq_p4 double %10.0g Event-time = + 4 a_eq_p5 double %10.0g Event-time = + 5 a_eq_p6 double %10.0g Event time >= + 6 . des a_evtime, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_evtime long %12.0g . drop a* . . * Test different prefix . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) savek(b) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . . *savek + suboption replace . cap noi xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) savek(b) No proxy or instruments provided. Implementing OLS estimator You specified to save the event-time dummy variables using the prefix b, but you already have event-time dummy v > ariables saved with that prefix. Use the replace suboption to replace the existing variables. . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) savek(b, replace) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . . * Test factor variables in varlist . cap gen pois=rpoisson(5) . xtevent y eta i.pois, panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(36, 7964) = 122.74 Prob > F = 0.0000 R-squared = 0.7550 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0624428 .110578 0.56 0.572 -.1543191 .2792047 _k_eq_m5 | .1555237 .1180129 1.32 0.188 -.0758124 .3868598 _k_eq_m4 | .0963482 .1132539 0.85 0.395 -.1256591 .3183555 _k_eq_m3 | .1381469 .108646 1.27 0.204 -.0748277 .3511215 _k_eq_m2 | .0452232 .1061565 0.43 0.670 -.1628714 .2533178 _k_eq_p0 | .9889039 .1046668 9.45 0.000 .7837296 1.194078 _k_eq_p1 | .9025719 .1058884 8.52 0.000 .695003 1.110141 _k_eq_p2 | .9970751 .1092733 9.12 0.000 .7828707 1.211279 _k_eq_p3 | .9618761 .1140893 8.43 0.000 .7382312 1.185521 _k_eq_p4 | .9895874 .1190799 8.31 0.000 .7561596 1.223015 _k_eq_p5 | 1.187254 .1271368 9.34 0.000 .9380329 1.436476 _k_eq_p6 | 1.071702 .1183705 9.05 0.000 .8396646 1.303739 eta | .2610576 .0096915 26.94 0.000 .2420597 .2800556 | pois | 1 | -.0771342 .1528839 -0.50 0.614 -.3768266 .2225582 2 | -.0374988 .1435777 -0.26 0.794 -.3189487 .2439511 3 | .069443 .1418811 0.49 0.625 -.208681 .347567 4 | .017418 .1410133 0.12 0.902 -.259005 .293841 5 | -.0050091 .1411995 -0.04 0.972 -.2817971 .2717788 6 | .0029945 .1416671 0.02 0.983 -.2747101 .2806992 7 | .0709204 .1426521 0.50 0.619 -.2087151 .3505559 8 | .0748014 .145725 0.51 0.608 -.2108578 .3604606 9 | .0450239 .1502479 0.30 0.764 -.2495014 .3395492 10 | .1041378 .1615372 0.64 0.519 -.2125174 .420793 11 | .1196211 .1831299 0.65 0.514 -.2393615 .4786038 12 | -.1570754 .2346912 -0.67 0.503 -.6171317 .3029808 13 | .0666528 .2733204 0.24 0.807 -.4691268 .6024324 14 | .41139 .7598165 0.54 0.588 -1.078049 1.900829 15 | -.3472958 1.065693 -0.33 0.745 -2.436334 1.741742 | t | 8 | .2834862 .0446311 6.35 0.000 .1959975 .3709749 9 | .4643923 .0448786 10.35 0.000 .3764186 .5523661 10 | .6931946 .0452035 15.33 0.000 .604584 .7818053 11 | .8396394 .0457556 18.35 0.000 .7499464 .9293324 12 | 1.011079 .0464548 21.76 0.000 .9200156 1.102143 13 | 1.249018 .0473635 26.37 0.000 1.156173 1.341863 14 | 1.396322 .0482459 28.94 0.000 1.301747 1.490897 15 | 1.632752 .0492005 33.19 0.000 1.536306 1.729198 | _cons | 1.294353 .1721154 7.52 0.000 .9569615 1.631744 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7964) = 10.308 Prob > F = 0.000 . cap drop pois . . * Test time series variables in varlist . . xtevent y l.eta , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 178.89 Prob > F = 0.0000 R-squared = 0.7410 Adj R-squared = 0.7079 Root MSE = 1.0225 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.295481 .1123046 -2.63 0.009 -.5156274 -.0753346 _k_eq_m5 | -.1011935 .1204667 -0.84 0.401 -.3373397 .1349526 _k_eq_m4 | -.1227952 .1157456 -1.06 0.289 -.3496867 .1040964 _k_eq_m3 | -.0412724 .1110857 -0.37 0.710 -.2590294 .1764846 _k_eq_m2 | -.0716846 .1086905 -0.66 0.510 -.2847463 .1413772 _k_eq_p0 | 1.245506 .1067054 11.67 0.000 1.036335 1.454676 _k_eq_p1 | .9291682 .1103296 8.42 0.000 .7128933 1.145443 _k_eq_p2 | 1.052904 .1137475 9.26 0.000 .8299293 1.275879 _k_eq_p3 | 1.045492 .1186774 8.81 0.000 .8128533 1.278131 _k_eq_p4 | 1.036239 .1241623 8.35 0.000 .792848 1.279629 _k_eq_p5 | 1.279284 .1321163 9.68 0.000 1.020302 1.538267 _k_eq_p6 | 1.16413 .1236861 9.41 0.000 .9216726 1.406587 | eta | L1. | .1672026 .0100676 16.61 0.000 .1474675 .1869378 | t | 8 | .2726674 .0458129 5.95 0.000 .1828621 .3624727 9 | .4416902 .0460325 9.60 0.000 .3514544 .531926 10 | .671576 .0464139 14.47 0.000 .5805927 .7625594 11 | .7940153 .0469168 16.92 0.000 .7020461 .8859845 12 | .9630645 .0476763 20.20 0.000 .8696065 1.056523 13 | 1.183873 .0485588 24.38 0.000 1.088685 1.279061 14 | 1.341169 .0495968 27.04 0.000 1.243947 1.438392 15 | 1.58076 .0506567 31.21 0.000 1.48146 1.68006 | _cons | 1.626315 .106004 15.34 0.000 1.41852 1.834111 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 9.944 Prob > F = 0.000 . xtevent y f.eta , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 178.44 Prob > F = 0.0000 R-squared = 0.7408 Adj R-squared = 0.7076 Root MSE = 1.0229 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.0291091 .1170249 -0.25 0.804 -.2585086 .2002903 _k_eq_m5 | .1327799 .1233004 1.08 0.282 -.108921 .3744808 _k_eq_m4 | .0979751 .1181573 0.83 0.407 -.1336441 .3295943 _k_eq_m3 | .1760395 .1130351 1.56 0.119 -.0455389 .3976179 _k_eq_m2 | .0806906 .109562 0.74 0.461 -.1340795 .2954607 _k_eq_p0 | 1.375972 .1063506 12.94 0.000 1.167497 1.584447 _k_eq_p1 | 1.301705 .1075082 12.11 0.000 1.090961 1.512449 _k_eq_p2 | 1.405924 .110716 12.70 0.000 1.188891 1.622956 _k_eq_p3 | 1.413712 .1154489 12.25 0.000 1.187402 1.640022 _k_eq_p4 | 1.425507 .1206614 11.81 0.000 1.188979 1.662035 _k_eq_p5 | 1.675223 .1285539 13.03 0.000 1.423224 1.927222 _k_eq_p6 | 1.5633 .119404 13.09 0.000 1.329237 1.797363 | eta | F1. | .1620502 .0098784 16.40 0.000 .1426859 .1814145 | t | 8 | .2736588 .0458329 5.97 0.000 .1838144 .3635033 9 | .4357338 .0460393 9.46 0.000 .3454848 .5259828 10 | .6693344 .0464266 14.42 0.000 .5783261 .7603428 11 | .7960018 .0469484 16.95 0.000 .7039707 .888033 12 | .96308 .047702 20.19 0.000 .8695715 1.056588 13 | 1.174796 .0485207 24.21 0.000 1.079683 1.26991 14 | 1.31004 .0493754 26.53 0.000 1.213251 1.406829 15 | 1.56065 .0505072 30.90 0.000 1.461643 1.659657 | _cons | 1.360062 .1101458 12.35 0.000 1.144147 1.575976 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 9.869 Prob > F = 0.000 . . * Test asymmetric window . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(-4 2) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(21, 11979) = 572.89 Prob > F = 0.0000 R-squared = 0.7583 Adj R-squared = 0.7377 Root MSE = 1.0034 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | .0795708 .078053 1.02 0.308 -.0734257 .2325673 _k_eq_m4 | .1413931 .0912102 1.55 0.121 -.0373937 .3201799 _k_eq_m3 | .1477981 .090233 1.64 0.101 -.0290733 .3246695 _k_eq_m2 | .1211895 .0886144 1.37 0.171 -.0525091 .2948881 _k_eq_p0 | 1.041602 .0902504 11.54 0.000 .8646964 1.218507 _k_eq_p1 | .9703133 .0916955 10.58 0.000 .7905752 1.150051 _k_eq_p2 | 1.044302 .0940255 11.11 0.000 .8599964 1.228607 _k_eq_p3 | 1.01891 .0768084 13.27 0.000 .868353 1.169467 eta | .258618 .0069438 37.24 0.000 .2450071 .272229 | t | 5 | .2244 .0449018 5.00 0.000 .1363851 .3124148 6 | .4031304 .0449613 8.97 0.000 .3149989 .4912619 7 | .5703228 .0450673 12.65 0.000 .4819836 .6586619 8 | .8526885 .0452145 18.86 0.000 .7640609 .9413162 9 | 1.031194 .0454225 22.70 0.000 .9421584 1.120229 10 | 1.261744 .0456657 27.63 0.000 1.172232 1.351256 11 | 1.408927 .0459908 30.63 0.000 1.318778 1.499077 12 | 1.583585 .0463148 34.19 0.000 1.492801 1.67437 13 | 1.825345 .0467484 39.05 0.000 1.73371 1.916979 14 | 1.973966 .0471473 41.87 0.000 1.88155 2.066382 15 | 2.209954 .0474623 46.56 0.000 2.116921 2.302988 16 | 2.431698 .0479853 50.68 0.000 2.337639 2.525757 | _cons | .7311287 .0815665 8.96 0.000 .5712452 .8910122 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11979) = 14.328 Prob > F = 0.000 . . * Test finding and estimating with the widest window . xtevent y eta , panelvar(i) timevar(t) policyvar(z) impute(stag) window(max) plot No proxy or instruments provided. Implementing OLS estimator The calculated window by window(max) is (-18,16), plus the endpoints -19 and 17. Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(56, 18944) = 702.23 Prob > F = 0.0000 R-squared = 0.8023 Adj R-squared = 0.7913 Root MSE = 1.0022 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m19 | .6423926 .2608484 2.46 0.014 .1311064 1.153679 _k_eq_m18 | -.1775268 .2104908 -0.84 0.399 -.5901075 .2350538 _k_eq_m17 | .1263326 .1698441 0.74 0.457 -.206577 .4592422 _k_eq_m16 | .0380571 .1450188 0.26 0.793 -.2461928 .3223069 _k_eq_m15 | .005294 .1337594 0.04 0.968 -.2568864 .2674743 _k_eq_m14 | -.1028837 .1236077 -0.83 0.405 -.3451658 .1393984 _k_eq_m13 | -.1811439 .1143673 -1.58 0.113 -.405314 .0430262 _k_eq_m12 | .1848555 .1070519 1.73 0.084 -.0249757 .3946868 _k_eq_m11 | .0700347 .1022051 0.69 0.493 -.1302964 .2703658 _k_eq_m10 | .1192835 .0973245 1.23 0.220 -.0714811 .3100481 _k_eq_m9 | -.1123919 .0934684 -1.20 0.229 -.2955984 .0708146 _k_eq_m8 | -.0008947 .0905761 -0.01 0.992 -.1784318 .1766425 _k_eq_m7 | .0825609 .0871064 0.95 0.343 -.0881755 .2532973 _k_eq_m6 | .1123127 .0850227 1.32 0.187 -.0543394 .2789648 _k_eq_m5 | .1134179 .082994 1.37 0.172 -.0492577 .2760935 _k_eq_m4 | .1225368 .0815805 1.50 0.133 -.0373683 .2824418 _k_eq_m3 | .1437796 .0806316 1.78 0.075 -.0142655 .3018246 _k_eq_m2 | .0626728 .0801585 0.78 0.434 -.094445 .2197905 _k_eq_p0 | 1.030078 .0803795 12.82 0.000 .872527 1.187629 _k_eq_p1 | .9553605 .081658 11.70 0.000 .7953035 1.115418 _k_eq_p2 | 1.046724 .0825916 12.67 0.000 .8848376 1.208611 _k_eq_p3 | 1.036179 .084252 12.30 0.000 .8710377 1.20132 _k_eq_p4 | 1.00154 .0863377 11.60 0.000 .8323109 1.17077 _k_eq_p5 | 1.153019 .0880671 13.09 0.000 .9803992 1.325638 _k_eq_p6 | 1.000366 .0902809 11.08 0.000 .8234072 1.177324 _k_eq_p7 | 1.030018 .0935097 11.02 0.000 .8467308 1.213306 _k_eq_p8 | .97777 .0975634 10.02 0.000 .7865371 1.169003 _k_eq_p9 | 1.035819 .1016011 10.19 0.000 .8366717 1.234966 _k_eq_p10 | 1.111073 .1076606 10.32 0.000 .9000485 1.322097 _k_eq_p11 | .9799806 .1153 8.50 0.000 .7539823 1.205979 _k_eq_p12 | 1.16532 .1240796 9.39 0.000 .9221132 1.408527 _k_eq_p13 | .8056877 .143361 5.62 0.000 .5246875 1.086688 _k_eq_p14 | 1.129944 .1649623 6.85 0.000 .8066028 1.453284 _k_eq_p15 | .7956263 .2124408 3.75 0.000 .3792235 1.212029 _k_eq_p16 | .7021863 .3051937 2.30 0.021 .1039793 1.300393 _k_eq_p17 | 1.457152 .5985379 2.43 0.015 .2839648 2.63034 eta | .2519384 .0047391 53.16 0.000 .2426494 .2612275 | t | 2 | .1434719 .0450851 3.18 0.001 .0551011 .2318427 3 | .3312757 .0451509 7.34 0.000 .2427759 .4197754 4 | .5528668 .0452825 12.21 0.000 .464109 .6416247 5 | .7741836 .0454452 17.04 0.000 .6851069 .8632602 6 | .9513304 .0455863 20.87 0.000 .8619772 1.040684 7 | 1.116552 .0457312 24.42 0.000 1.026915 1.206189 8 | 1.394627 .0458923 30.39 0.000 1.304674 1.48458 9 | 1.574857 .0460787 34.18 0.000 1.484539 1.665176 10 | 1.803088 .0462321 39.00 0.000 1.712469 1.893707 11 | 1.950842 .046446 42.00 0.000 1.859804 2.041881 12 | 2.123341 .0466535 45.51 0.000 2.031896 2.214786 13 | 2.361859 .046878 50.38 0.000 2.269974 2.453744 14 | 2.511809 .0470803 53.35 0.000 2.419527 2.604091 15 | 2.747289 .0472441 58.15 0.000 2.654686 2.839891 16 | 2.968836 .0475149 62.48 0.000 2.875702 3.06197 17 | 3.174446 .0477045 66.54 0.000 3.080941 3.267952 18 | 3.336821 .0479173 69.64 0.000 3.242898 3.430743 19 | 3.544168 .0481713 73.57 0.000 3.449748 3.638588 20 | 3.743031 .0486024 77.01 0.000 3.647766 3.838296 | _cons | -.1941443 .1921508 -1.01 0.312 -.570777 .1824883 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18944) = 21.600 Prob > F = 0.000 . . * Test finding and estimating with the widest window with balanced time periods for all units . * expect an error message because balanced window is too narrow . cap noi xtevent y eta , panelvar(i) timevar(t) policyvar(z) impute(stag) window(balanced) plot No proxy or instruments provided. Implementing OLS estimator The calculated window by window(balanced) is (-1,-1), plus the endpoints -2 and 0. Left window can not be positive and right window can not be negative. Check for first-treated units and last-treated units. Both types of units might have few common periods around t > reatment time which causes a narrow calculated window. . . * Test normalizations . . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(-1) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(-2) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0189149 .1043314 0.18 0.856 -.185602 .2234318 _k_eq_m5 | .1147788 .1144395 1.00 0.316 -.1095526 .3391102 _k_eq_m4 | .0508217 .1106011 0.46 0.646 -.1659853 .2676286 _k_eq_m3 | .0994637 .106911 0.93 0.352 -.1101097 .3090372 _k_eq_m1 | -.0503755 .105976 -0.48 0.635 -.2581161 .1573651 _k_eq_p0 | .9388562 .1090921 8.61 0.000 .7250071 1.152705 _k_eq_p1 | .8517438 .1111767 7.66 0.000 .6338085 1.069679 _k_eq_p2 | .9474805 .1152216 8.22 0.000 .7216161 1.173345 _k_eq_p3 | .9116492 .1206376 7.56 0.000 .675168 1.14813 _k_eq_p4 | .9407891 .1258371 7.48 0.000 .6941154 1.187463 _k_eq_p5 | 1.132847 .1341742 8.44 0.000 .8698303 1.395863 _k_eq_p6 | 1.022421 .1268115 8.06 0.000 .7738374 1.271005 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.364592 .099556 13.71 0.000 1.169436 1.559748 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(-6) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | .0958639 .0938989 1.02 0.307 -.0882025 .2799303 _k_eq_m4 | .0319068 .0972686 0.33 0.743 -.1587651 .2225786 _k_eq_m3 | .0805489 .0992278 0.81 0.417 -.1139635 .2750612 _k_eq_m2 | -.0189149 .1043314 -0.18 0.856 -.2234318 .185602 _k_eq_m1 | -.0692904 .1104722 -0.63 0.531 -.2858448 .147264 _k_eq_p0 | .9199414 .1188439 7.74 0.000 .6869762 1.152907 _k_eq_p1 | .8328289 .1233777 6.75 0.000 .5909764 1.074681 _k_eq_p2 | .9285656 .1294566 7.17 0.000 .6747968 1.182334 _k_eq_p3 | .8927344 .1362394 6.55 0.000 .6256695 1.159799 _k_eq_p4 | .9218742 .1418843 6.50 0.000 .6437438 1.200005 _k_eq_p5 | 1.113932 .1505378 7.40 0.000 .8188384 1.409025 _k_eq_p6 | 1.003506 .145634 6.89 0.000 .7180256 1.288987 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.383507 .0346139 39.97 0.000 1.315655 1.451359 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . * Should fail . * xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(-7) plot . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(1) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.8328289 .1233777 -6.75 0.000 -1.074681 -.5909764 _k_eq_m5 | -.736965 .1271325 -5.80 0.000 -.986178 -.4877521 _k_eq_m4 | -.8009222 .1213221 -6.60 0.000 -1.038745 -.563099 _k_eq_m3 | -.7522801 .1154607 -6.52 0.000 -.9786132 -.525947 _k_eq_m2 | -.8517438 .1111767 -7.66 0.000 -1.069679 -.6338085 _k_eq_m1 | -.9021193 .1058732 -8.52 0.000 -1.109658 -.6945801 _k_eq_p0 | .0871124 .1026674 0.85 0.396 -.1141426 .2883674 _k_eq_p2 | .0957367 .1031843 0.93 0.354 -.1065316 .298005 _k_eq_p3 | .0599054 .1067417 0.56 0.575 -.1493363 .2691471 _k_eq_p4 | .0890452 .1110392 0.80 0.423 -.1286206 .3067111 _k_eq_p5 | .2811028 .1181413 2.38 0.017 .0495151 .5126906 _k_eq_p6 | .1706773 .105891 1.61 0.107 -.0368968 .3782514 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 2.216336 .1162453 19.07 0.000 1.988465 2.444207 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.113932 .1505378 -7.40 0.000 -1.409025 -.8188384 _k_eq_m5 | -1.018068 .1518899 -6.70 0.000 -1.315812 -.720324 _k_eq_m4 | -1.082025 .1462731 -7.40 0.000 -1.368759 -.7952915 _k_eq_m3 | -1.033383 .1396579 -7.40 0.000 -1.307149 -.7596169 _k_eq_m2 | -1.132847 .1341742 -8.44 0.000 -1.395863 -.8698303 _k_eq_m1 | -1.183222 .1269706 -9.32 0.000 -1.432118 -.9343267 _k_eq_p0 | -.1939904 .1215288 -1.60 0.110 -.4322186 .0442377 _k_eq_p1 | -.2811028 .1181413 -2.38 0.017 -.5126906 -.0495151 _k_eq_p2 | -.1853662 .1165692 -1.59 0.112 -.4138722 .0431399 _k_eq_p3 | -.2211974 .1166876 -1.90 0.058 -.4499356 .0075408 _k_eq_p4 | -.1920576 .1182786 -1.62 0.104 -.4239146 .0397994 _k_eq_p6 | -.1104255 .1049386 -1.05 0.293 -.3161327 .0952816 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 2.497439 .1439853 17.35 0.000 2.21519 2.779688 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . * Should fail . * xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(7) plot . graph drop _all . . * Test exclusion of unbalanced units with ambiguous eventtime . . gen z2 = z . replace z2 = . if i==1 & t==7 (1 real change made, 1 to missing) . xtevent y eta, policyvar(z2) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Unit 1 not used because of ambiguous event-time due to missing values in policyvar. Linear regression, absorbing indicators Number of obs = 8,991 Absorbed variable: i No. of categories = 999 F(21, 7971) = 209.76 Prob > F = 0.0000 R-squared = 0.7546 Adj R-squared = 0.7233 Root MSE = 0.9952 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0703755 .1104496 0.64 0.524 -.1461346 .2868856 _k_eq_m5 | .1660506 .1178638 1.41 0.159 -.0649932 .3970944 _k_eq_m4 | .1017686 .113111 0.90 0.368 -.1199585 .3234957 _k_eq_m3 | .1504824 .1084974 1.39 0.165 -.0622008 .3631656 _k_eq_m2 | .0508257 .1059484 0.48 0.631 -.1568609 .2585123 _k_eq_p0 | .9954945 .1046747 9.51 0.000 .7903047 1.200684 _k_eq_p1 | .8901281 .1059488 8.40 0.000 .6824407 1.097816 _k_eq_p2 | 1.004424 .1092764 9.19 0.000 .7902139 1.218635 _k_eq_p3 | .9586975 .1141535 8.40 0.000 .7349268 1.182468 _k_eq_p4 | .9871542 .1191155 8.29 0.000 .7536566 1.220652 _k_eq_p5 | 1.18813 .1271836 9.34 0.000 .938817 1.437443 _k_eq_p6 | 1.071289 .1185294 9.04 0.000 .8389405 1.303638 eta | .2620157 .0096815 27.06 0.000 .2430375 .2809939 | t | 8 | .2788584 .0446138 6.25 0.000 .1914038 .3663131 9 | .4606976 .0448258 10.28 0.000 .3728273 .5485679 10 | .6877051 .0451738 15.22 0.000 .5991526 .7762575 11 | .8338794 .0457029 18.25 0.000 .7442898 .9234691 12 | 1.007937 .0464077 21.72 0.000 .9169652 1.098908 13 | 1.24709 .0472948 26.37 0.000 1.15438 1.3398 14 | 1.395681 .0481892 28.96 0.000 1.301218 1.490145 15 | 1.626921 .049143 33.11 0.000 1.530588 1.723254 | _cons | 1.314887 .1041868 12.62 0.000 1.110654 1.519121 ------------------------------------------------------------------------------ F test of absorbed indicators: F(998, 7971) = 10.332 Prob > F = 0.000 . drop z2 . . * Test reghdfe . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(3) reghdfe plot No proxy or instruments provided. Implementing OLS estimator (MWFE estimator converged in 2 iterations) HDFE Linear regression Number of obs = 13,000 Absorbing 2 HDFE groups F( 9, 11979) = 341.82 Prob > F = 0.0000 R-squared = 0.7653 Adj R-squared = 0.7453 Within R-sq. = 0.2043 Root MSE = 1.0058 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | .1354244 .0756957 1.79 0.074 -.0129515 .2838003 _k_eq_m3 | .1927795 .0902369 2.14 0.033 .0159005 .3696585 _k_eq_m2 | .1540638 .0894043 1.72 0.085 -.0211831 .3293106 _k_eq_p0 | 1.068977 .0892098 11.98 0.000 .8941116 1.243843 _k_eq_p1 | 1.006862 .0907016 11.10 0.000 .8290722 1.184652 _k_eq_p2 | 1.062882 .0922647 11.52 0.000 .8820284 1.243736 _k_eq_p3 | 1.031628 .0947797 10.88 0.000 .8458445 1.217412 _k_eq_p4 | 1.056418 .0782796 13.50 0.000 .9029772 1.209858 eta | .2593535 .0068421 37.91 0.000 .2459418 .2727651 _cons | 2.098311 .0695652 30.16 0.000 1.961952 2.23467 ------------------------------------------------------------------------------ Absorbed degrees of freedom: -----------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | -------------+---------------------------------------| i | 1000 0 1000 | t | 13 1 12 | -----------------------------------------------------+ . . * Test reghdfe, proxy and absorbing a variable . gen k=round(x) //generate a categorical variable. Use it as a control . xtevent y eta, policyvar(z) window(3) proxy(x) nofe note addabsorb(k) reghdfe Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. (dropped 2 singleton observations) (MWFE estimator converged in 1 iterations) IV (2SLS) estimation -------------------- Estimates efficient for homoskedasticity only Statistics consistent for homoskedasticity only Number of obs = 12998 F( 9, 12960) = 0.53 Prob > F = 0.8521 Total (centered) SS = 39316.59193 Centered R2 = -4.5e+02 Total (uncentered) SS = 39316.59193 Uncentered R2 = -4.5e+02 Residual SS = 17592667.23 Root MSE = 36.84 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | -128.9603 4714.768 -0.03 0.978 -9370.598 9112.677 eta | 3.057847 103.4982 0.03 0.976 -199.8138 205.9294 _k_eq_m4 | -3.015101 105.0347 -0.03 0.977 -208.8986 202.8684 _k_eq_m3 | -3.201484 119.8647 -0.03 0.979 -238.154 231.751 _k_eq_p0 | -1.328407 88.66188 -0.01 0.988 -175.1187 172.4619 _k_eq_p1 | .9751639 6.763573 0.14 0.885 -12.28243 14.23276 _k_eq_p2 | -4.00355 192.9401 -0.02 0.983 -382.1945 374.1874 _k_eq_p3 | .9918023 12.95882 0.08 0.939 -24.40938 26.39299 _k_eq_p4 | -2.13739 139.3771 -0.02 0.988 -275.3369 271.0621 ------------------------------------------------------------------------------ Underidentification test (Anderson canon. corr. LM statistic): 0.001 Chi-sq(1) P-val = 0.9781 ------------------------------------------------------------------------------ Weak identification test (Cragg-Donald Wald F statistic): 0.001 Stock-Yogo weak ID test critical values: 10% maximal IV size 16.38 15% maximal IV size 8.96 20% maximal IV size 6.66 25% maximal IV size 5.53 Source: Stock-Yogo (2005). Reproduced by permission. ------------------------------------------------------------------------------ Sargan statistic (overidentification test of all instruments): 0.000 (equation exactly identified) ------------------------------------------------------------------------------ Instrumented: x Included instruments: eta _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 Excluded instruments: _fd1z Partialled-out: _cons nb: total SS, model F and R2s are after partialling-out; any small-sample adjustments include partialled-out variables in regressor count K ------------------------------------------------------------------------------ Absorbed degrees of freedom: -----------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | -------------+---------------------------------------| k | 29 0 29 | -----------------------------------------------------+ . . *Test additional cluster and robust specifications . xtevent y eta, policyvar(z) window(3) proxy(x) nofe note addabsorb(k) reghdfe robust cluster(i) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. (dropped 2 singleton observations) (MWFE estimator converged in 1 iterations) IV (2SLS) estimation -------------------- Estimates efficient for homoskedasticity only Statistics robust to heteroskedasticity and clustering on i Number of clusters (i) = 1000 Number of obs = 12998 F( 9, 999) = 0.58 Prob > F = 0.8152 Total (centered) SS = 39316.59193 Centered R2 = -4.5e+02 Total (uncentered) SS = 39316.59193 Uncentered R2 = -4.5e+02 Residual SS = 17592667.23 Root MSE = 36.84 ------------------------------------------------------------------------------ | Robust y | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | -128.9603 4423.488 -0.03 0.977 -8809.354 8551.433 eta | 3.057847 97.09499 0.03 0.975 -187.4757 193.5914 _k_eq_m4 | -3.015101 98.55369 -0.03 0.976 -196.4111 190.3809 _k_eq_m3 | -3.201484 112.5611 -0.03 0.977 -224.0847 217.6817 _k_eq_p0 | -1.328407 83.1373 -0.02 0.987 -164.4722 161.8154 _k_eq_p1 | .9751639 6.380948 0.15 0.879 -11.54643 13.49676 _k_eq_p2 | -4.00355 180.9694 -0.02 0.982 -359.1274 351.1203 _k_eq_p3 | .9918023 12.13761 0.08 0.935 -22.82634 24.80994 _k_eq_p4 | -2.13739 130.7144 -0.02 0.987 -258.6437 254.3689 ------------------------------------------------------------------------------ Underidentification test (Kleibergen-Paap rk LM statistic): 0.001 Chi-sq(1) P-val = 0.9767 ------------------------------------------------------------------------------ Weak identification test (Cragg-Donald Wald F statistic): 0.001 (Kleibergen-Paap rk Wald F statistic): 0.001 Stock-Yogo weak ID test critical values: 10% maximal IV size 16.38 15% maximal IV size 8.96 20% maximal IV size 6.66 25% maximal IV size 5.53 Source: Stock-Yogo (2005). Reproduced by permission. NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors. ------------------------------------------------------------------------------ Hansen J statistic (overidentification test of all instruments): 0.000 (equation exactly identified) ------------------------------------------------------------------------------ Instrumented: x Included instruments: eta _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 Excluded instruments: _fd1z Partialled-out: _cons nb: total SS, model F and R2s are after partialling-out; any small-sample adjustments include partialled-out variables in regressor count K ------------------------------------------------------------------------------ Absorbed degrees of freedom: -----------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | -------------+---------------------------------------| k | 29 0 29 | -----------------------------------------------------+ . *equivalent specification (it admits use of vce) . xtevent y eta, policyvar(z) window(3) proxy(x) nofe note addabsorb(k) reghdfe vce(robust cluster i) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. (dropped 2 singleton observations) (MWFE estimator converged in 1 iterations) IV (2SLS) estimation -------------------- Estimates efficient for homoskedasticity only Statistics robust to heteroskedasticity and clustering on i Number of clusters (i) = 1000 Number of obs = 12998 F( 9, 999) = 0.58 Prob > F = 0.8152 Total (centered) SS = 39316.59193 Centered R2 = -4.5e+02 Total (uncentered) SS = 39316.59193 Uncentered R2 = -4.5e+02 Residual SS = 17592667.23 Root MSE = 36.84 ------------------------------------------------------------------------------ | Robust y | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | -128.9603 4423.488 -0.03 0.977 -8809.354 8551.433 eta | 3.057847 97.09499 0.03 0.975 -187.4757 193.5914 _k_eq_m4 | -3.015101 98.55369 -0.03 0.976 -196.4111 190.3809 _k_eq_m3 | -3.201484 112.5611 -0.03 0.977 -224.0847 217.6817 _k_eq_p0 | -1.328407 83.1373 -0.02 0.987 -164.4722 161.8154 _k_eq_p1 | .9751639 6.380948 0.15 0.879 -11.54643 13.49676 _k_eq_p2 | -4.00355 180.9694 -0.02 0.982 -359.1274 351.1203 _k_eq_p3 | .9918023 12.13761 0.08 0.935 -22.82634 24.80994 _k_eq_p4 | -2.13739 130.7144 -0.02 0.987 -258.6437 254.3689 ------------------------------------------------------------------------------ Underidentification test (Kleibergen-Paap rk LM statistic): 0.001 Chi-sq(1) P-val = 0.9767 ------------------------------------------------------------------------------ Weak identification test (Cragg-Donald Wald F statistic): 0.001 (Kleibergen-Paap rk Wald F statistic): 0.001 Stock-Yogo weak ID test critical values: 10% maximal IV size 16.38 15% maximal IV size 8.96 20% maximal IV size 6.66 25% maximal IV size 5.53 Source: Stock-Yogo (2005). Reproduced by permission. NB: Critical values are for Cragg-Donald F statistic and i.i.d. errors. ------------------------------------------------------------------------------ Hansen J statistic (overidentification test of all instruments): 0.000 (equation exactly identified) ------------------------------------------------------------------------------ Instrumented: x Included instruments: eta _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 Excluded instruments: _fd1z Partialled-out: _cons nb: total SS, model F and R2s are after partialling-out; any small-sample adjustments include partialled-out variables in regressor count K ------------------------------------------------------------------------------ Absorbed degrees of freedom: -----------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | -------------+---------------------------------------| k | 29 0 29 | -----------------------------------------------------+ . . /* > *Test other standard-error specifications (not allowed) > xtevent y eta, policyvar(z) window(3) proxy(x) nofe note addabsorb(k) reghdfe vce(bootstrap) //will show an er > ror message > */ . . *Imputation of policyvar without verifying staggered adoption conditions . xtevent y eta, policyvar(z) timevar(t) window(5) impute(nuchange) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(32, 18968) = 1227.00 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0025 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0427905 .0658651 0.65 0.516 -.0863109 .1718919 _k_eq_m5 | .1142531 .0829476 1.38 0.168 -.0483316 .2768378 _k_eq_m4 | .1235599 .0815648 1.51 0.130 -.0363144 .2834342 _k_eq_m3 | .1449225 .0806382 1.80 0.072 -.0131355 .3029805 _k_eq_m2 | .063277 .0801788 0.79 0.430 -.0938806 .2204345 _k_eq_p0 | 1.028802 .0803954 12.80 0.000 .8712198 1.186384 _k_eq_p1 | .9546164 .0816477 11.69 0.000 .7945797 1.114653 _k_eq_p2 | 1.045062 .0825558 12.66 0.000 .8832449 1.206878 _k_eq_p3 | 1.03385 .0841759 12.28 0.000 .868858 1.198842 _k_eq_p4 | .9980611 .0862184 11.58 0.000 .8290654 1.167057 _k_eq_p5 | 1.148754 .0879135 13.07 0.000 .9764361 1.321073 _k_eq_p6 | 1.012673 .0678512 14.92 0.000 .8796789 1.145668 eta | .2525003 .0047011 53.71 0.000 .2432856 .2617149 | t | 2 | .131826 .0448419 2.94 0.003 .043932 .21972 3 | .3236485 .0448713 7.21 0.000 .2356967 .4116003 4 | .5422926 .0449192 12.07 0.000 .4542469 .6303384 5 | .7656458 .0449832 17.02 0.000 .6774747 .8538169 6 | .9441123 .0450735 20.95 0.000 .8557641 1.03246 7 | 1.110485 .0451627 24.59 0.000 1.021962 1.199008 8 | 1.391892 .0452818 30.74 0.000 1.303136 1.480649 9 | 1.569177 .0454232 34.55 0.000 1.480143 1.65821 10 | 1.798732 .0455576 39.48 0.000 1.709435 1.888029 11 | 1.944693 .0457317 42.52 0.000 1.855054 2.034331 12 | 2.118919 .0459368 46.13 0.000 2.028878 2.208959 13 | 2.358402 .0461766 51.07 0.000 2.267891 2.448912 14 | 2.508353 .046364 54.10 0.000 2.417476 2.599231 15 | 2.743864 .0465675 58.92 0.000 2.652588 2.835141 16 | 2.96558 .0467943 63.37 0.000 2.873859 3.057301 17 | 3.171225 .0469401 67.56 0.000 3.079219 3.263232 18 | 3.334319 .0470768 70.83 0.000 3.242045 3.426594 19 | 3.537133 .04722 74.91 0.000 3.444577 3.629688 20 | 3.737882 .0474178 78.83 0.000 3.644939 3.830825 | _cons | .2224166 .0725583 3.07 0.002 .0801958 .3646373 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18968) = 21.596 Prob > F = 0.000 . . *outer imputation of policyvar verifying staggered adoption conditions . xtevent y eta, policyvar(z) timevar(t) window(5) impute(stag) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(32, 18968) = 1227.00 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0025 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0427905 .0658651 0.65 0.516 -.0863109 .1718919 _k_eq_m5 | .1142531 .0829476 1.38 0.168 -.0483316 .2768378 _k_eq_m4 | .1235599 .0815648 1.51 0.130 -.0363144 .2834342 _k_eq_m3 | .1449225 .0806382 1.80 0.072 -.0131355 .3029805 _k_eq_m2 | .063277 .0801788 0.79 0.430 -.0938806 .2204345 _k_eq_p0 | 1.028802 .0803954 12.80 0.000 .8712198 1.186384 _k_eq_p1 | .9546164 .0816477 11.69 0.000 .7945797 1.114653 _k_eq_p2 | 1.045062 .0825558 12.66 0.000 .8832449 1.206878 _k_eq_p3 | 1.03385 .0841759 12.28 0.000 .868858 1.198842 _k_eq_p4 | .9980611 .0862184 11.58 0.000 .8290654 1.167057 _k_eq_p5 | 1.148754 .0879135 13.07 0.000 .9764361 1.321073 _k_eq_p6 | 1.012673 .0678512 14.92 0.000 .8796789 1.145668 eta | .2525003 .0047011 53.71 0.000 .2432856 .2617149 | t | 2 | .131826 .0448419 2.94 0.003 .043932 .21972 3 | .3236485 .0448713 7.21 0.000 .2356967 .4116003 4 | .5422926 .0449192 12.07 0.000 .4542469 .6303384 5 | .7656458 .0449832 17.02 0.000 .6774747 .8538169 6 | .9441123 .0450735 20.95 0.000 .8557641 1.03246 7 | 1.110485 .0451627 24.59 0.000 1.021962 1.199008 8 | 1.391892 .0452818 30.74 0.000 1.303136 1.480649 9 | 1.569177 .0454232 34.55 0.000 1.480143 1.65821 10 | 1.798732 .0455576 39.48 0.000 1.709435 1.888029 11 | 1.944693 .0457317 42.52 0.000 1.855054 2.034331 12 | 2.118919 .0459368 46.13 0.000 2.028878 2.208959 13 | 2.358402 .0461766 51.07 0.000 2.267891 2.448912 14 | 2.508353 .046364 54.10 0.000 2.417476 2.599231 15 | 2.743864 .0465675 58.92 0.000 2.652588 2.835141 16 | 2.96558 .0467943 63.37 0.000 2.873859 3.057301 17 | 3.171225 .0469401 67.56 0.000 3.079219 3.263232 18 | 3.334319 .0470768 70.83 0.000 3.242045 3.426594 19 | 3.537133 .04722 74.91 0.000 3.444577 3.629688 20 | 3.737882 .0474178 78.83 0.000 3.644939 3.830825 | _cons | .2224166 .0725583 3.07 0.002 .0801958 .3646373 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18968) = 21.596 Prob > F = 0.000 . . *outer and inner imputation of policyvar verifying staggered adoption conditions . xtevent y eta, policyvar(z) timevar(t) window(5) impute(instag) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(32, 18968) = 1227.00 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0025 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0427905 .0658651 0.65 0.516 -.0863109 .1718919 _k_eq_m5 | .1142531 .0829476 1.38 0.168 -.0483316 .2768378 _k_eq_m4 | .1235599 .0815648 1.51 0.130 -.0363144 .2834342 _k_eq_m3 | .1449225 .0806382 1.80 0.072 -.0131355 .3029805 _k_eq_m2 | .063277 .0801788 0.79 0.430 -.0938806 .2204345 _k_eq_p0 | 1.028802 .0803954 12.80 0.000 .8712198 1.186384 _k_eq_p1 | .9546164 .0816477 11.69 0.000 .7945797 1.114653 _k_eq_p2 | 1.045062 .0825558 12.66 0.000 .8832449 1.206878 _k_eq_p3 | 1.03385 .0841759 12.28 0.000 .868858 1.198842 _k_eq_p4 | .9980611 .0862184 11.58 0.000 .8290654 1.167057 _k_eq_p5 | 1.148754 .0879135 13.07 0.000 .9764361 1.321073 _k_eq_p6 | 1.012673 .0678512 14.92 0.000 .8796789 1.145668 eta | .2525003 .0047011 53.71 0.000 .2432856 .2617149 | t | 2 | .131826 .0448419 2.94 0.003 .043932 .21972 3 | .3236485 .0448713 7.21 0.000 .2356967 .4116003 4 | .5422926 .0449192 12.07 0.000 .4542469 .6303384 5 | .7656458 .0449832 17.02 0.000 .6774747 .8538169 6 | .9441123 .0450735 20.95 0.000 .8557641 1.03246 7 | 1.110485 .0451627 24.59 0.000 1.021962 1.199008 8 | 1.391892 .0452818 30.74 0.000 1.303136 1.480649 9 | 1.569177 .0454232 34.55 0.000 1.480143 1.65821 10 | 1.798732 .0455576 39.48 0.000 1.709435 1.888029 11 | 1.944693 .0457317 42.52 0.000 1.855054 2.034331 12 | 2.118919 .0459368 46.13 0.000 2.028878 2.208959 13 | 2.358402 .0461766 51.07 0.000 2.267891 2.448912 14 | 2.508353 .046364 54.10 0.000 2.417476 2.599231 15 | 2.743864 .0465675 58.92 0.000 2.652588 2.835141 16 | 2.96558 .0467943 63.37 0.000 2.873859 3.057301 17 | 3.171225 .0469401 67.56 0.000 3.079219 3.263232 18 | 3.334319 .0470768 70.83 0.000 3.242045 3.426594 19 | 3.537133 .04722 74.91 0.000 3.444577 3.629688 20 | 3.737882 .0474178 78.83 0.000 3.644939 3.830825 | _cons | .2224166 .0725583 3.07 0.002 .0801958 .3646373 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18968) = 21.596 Prob > F = 0.000 . . *outer and inner mputation of policyvar. Adds the imputed policyvar to the database . xtevent y eta, policyvar(z) timevar(t) window(5) impute(instag, saveimp) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(32, 18968) = 1227.00 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0025 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0427905 .0658651 0.65 0.516 -.0863109 .1718919 _k_eq_m5 | .1142531 .0829476 1.38 0.168 -.0483316 .2768378 _k_eq_m4 | .1235599 .0815648 1.51 0.130 -.0363144 .2834342 _k_eq_m3 | .1449225 .0806382 1.80 0.072 -.0131355 .3029805 _k_eq_m2 | .063277 .0801788 0.79 0.430 -.0938806 .2204345 _k_eq_p0 | 1.028802 .0803954 12.80 0.000 .8712198 1.186384 _k_eq_p1 | .9546164 .0816477 11.69 0.000 .7945797 1.114653 _k_eq_p2 | 1.045062 .0825558 12.66 0.000 .8832449 1.206878 _k_eq_p3 | 1.03385 .0841759 12.28 0.000 .868858 1.198842 _k_eq_p4 | .9980611 .0862184 11.58 0.000 .8290654 1.167057 _k_eq_p5 | 1.148754 .0879135 13.07 0.000 .9764361 1.321073 _k_eq_p6 | 1.012673 .0678512 14.92 0.000 .8796789 1.145668 eta | .2525003 .0047011 53.71 0.000 .2432856 .2617149 | t | 2 | .131826 .0448419 2.94 0.003 .043932 .21972 3 | .3236485 .0448713 7.21 0.000 .2356967 .4116003 4 | .5422926 .0449192 12.07 0.000 .4542469 .6303384 5 | .7656458 .0449832 17.02 0.000 .6774747 .8538169 6 | .9441123 .0450735 20.95 0.000 .8557641 1.03246 7 | 1.110485 .0451627 24.59 0.000 1.021962 1.199008 8 | 1.391892 .0452818 30.74 0.000 1.303136 1.480649 9 | 1.569177 .0454232 34.55 0.000 1.480143 1.65821 10 | 1.798732 .0455576 39.48 0.000 1.709435 1.888029 11 | 1.944693 .0457317 42.52 0.000 1.855054 2.034331 12 | 2.118919 .0459368 46.13 0.000 2.028878 2.208959 13 | 2.358402 .0461766 51.07 0.000 2.267891 2.448912 14 | 2.508353 .046364 54.10 0.000 2.417476 2.599231 15 | 2.743864 .0465675 58.92 0.000 2.652588 2.835141 16 | 2.96558 .0467943 63.37 0.000 2.873859 3.057301 17 | 3.171225 .0469401 67.56 0.000 3.079219 3.263232 18 | 3.334319 .0470768 70.83 0.000 3.242045 3.426594 19 | 3.537133 .04722 74.91 0.000 3.444577 3.629688 20 | 3.737882 .0474178 78.83 0.000 3.644939 3.830825 | _cons | .2224166 .0725583 3.07 0.002 .0801958 .3646373 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18968) = 21.596 Prob > F = 0.000 . drop z_imputed . . *imputation fails if staggered conditions are not satisfied. It reverts to no imputation . replace z=0.5 in 7 (1 real change made) . xtevent y eta, policyvar(z) timevar(t) window(5) impute(instag) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator The policy variable is not binary. Assuming non-staggered adoption (no imputation). If event dummies and variables are saved, event-time will be missing. Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.77 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7232 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0715983 .1104562 0.65 0.517 -.1449249 .2881214 _k_eq_m5 | .1675625 .1178717 1.42 0.155 -.0634969 .3986219 _k_eq_m4 | .1035511 .1131158 0.92 0.360 -.1181854 .3252877 _k_eq_m3 | .1521469 .1084987 1.40 0.161 -.060539 .3648328 _k_eq_m2 | .0526461 .1059459 0.50 0.619 -.1550355 .2603278 _k_eq_p0 | 1.0014 .1046661 9.57 0.000 .7962272 1.206573 _k_eq_p1 | .8948379 .1058614 8.45 0.000 .687322 1.102354 _k_eq_p2 | 1.004457 .1091755 9.20 0.000 .7904442 1.218469 _k_eq_p3 | .9638896 .1140277 8.45 0.000 .7403654 1.187414 _k_eq_p4 | .9890446 .118959 8.31 0.000 .7558538 1.222235 _k_eq_p5 | 1.184657 .1269664 9.33 0.000 .9357693 1.433544 _k_eq_p6 | 1.075386 .1182108 9.10 0.000 .8436616 1.30711 eta | .2616141 .0096787 27.03 0.000 .2426414 .2805868 | t | 8 | .2816914 .0446005 6.32 0.000 .1942627 .3691201 9 | .4601468 .044814 10.27 0.000 .3722997 .5479939 10 | .6888977 .0451632 15.25 0.000 .6003661 .7774294 11 | .8350845 .0456947 18.28 0.000 .7455109 .924658 12 | 1.007945 .0464008 21.72 0.000 .9169878 1.098903 13 | 1.246861 .0472914 26.37 0.000 1.154158 1.339565 14 | 1.395731 .0481866 28.97 0.000 1.301272 1.490189 15 | 1.628993 .0491426 33.15 0.000 1.53266 1.725325 | _cons | 1.312443 .1041222 12.60 0.000 1.108336 1.516549 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.318 Prob > F = 0.000 . replace z=1 in 7 (1 real change made) . . *Difference in averages between the post and pre-period . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) diffavg No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 Difference in pre and post-period averages from lincom: ( 1) - .1666667*_k_eq_m6 - .1666667*_k_eq_m5 - .1666667*_k_eq_m4 - .1666667*_k_eq_m3 - .1666667*_k_eq_m2 + .1428571*_k_eq_p0 + .1428571*_k_eq_p1 + .1428571*_k_eq_p2 + .1428571*_k_eq_p3 + .1428571*_k_eq_p4 + .1428571*_k_eq_p5 + .1428571*_k_eq_p6 = 0 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- (1) | .9247 .07987 11.58 0.000 .7682 1.081 ------------------------------------------------------------------------------ . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(4) diff No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 11,000 Absorbed variable: i No. of categories = 1,000 F(21, 9979) = 364.11 Prob > F = 0.0000 R-squared = 0.7597 Adj R-squared = 0.7351 Root MSE = 0.9988 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | .1064592 .0882523 1.21 0.228 -.0665332 .2794515 _k_eq_m4 | .2084681 .1003321 2.08 0.038 .0117969 .4051393 _k_eq_m3 | .1319181 .0985816 1.34 0.181 -.0613217 .325158 _k_eq_m2 | .1236275 .0952815 1.30 0.194 -.0631435 .3103985 _k_eq_p0 | 1.078656 .0957062 11.27 0.000 .8910527 1.26626 _k_eq_p1 | .9753733 .0965706 10.10 0.000 .7860754 1.164671 _k_eq_p2 | 1.065092 .0985262 10.81 0.000 .8719606 1.258223 _k_eq_p3 | .9877504 .1020527 9.68 0.000 .7877065 1.187794 _k_eq_p4 | 1.016109 .1067581 9.52 0.000 .8068417 1.225377 _k_eq_p5 | 1.098892 .0927222 11.85 0.000 .9171381 1.280647 eta | .2578974 .0080213 32.15 0.000 .242174 .2736209 | t | 7 | .1679718 .044711 3.76 0.000 .0803291 .2556144 8 | .4505925 .0448062 10.06 0.000 .3627633 .5384218 9 | .6291955 .0449973 13.98 0.000 .5409918 .7173992 10 | .8591139 .04526 18.98 0.000 .770395 .9478327 11 | 1.005804 .0456234 22.05 0.000 .9163732 1.095235 12 | 1.17937 .0460412 25.62 0.000 1.08912 1.26962 13 | 1.418885 .0466189 30.44 0.000 1.327502 1.510267 14 | 1.566952 .0471667 33.22 0.000 1.474495 1.659408 15 | 1.801863 .047671 37.80 0.000 1.708418 1.895308 16 | 2.0219 .0484162 41.76 0.000 1.926995 2.116806 | _cons | 1.108744 .0884728 12.53 0.000 .9353196 1.282169 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 9979) = 12.378 Prob > F = 0.000 Difference in pre and post-period averages from lincom: ( 1) - .2*_k_eq_m5 - .2*_k_eq_m4 - .2*_k_eq_m3 - .2*_k_eq_m2 + .1666667*_k_eq_p0 + .1666667*_k_eq_p1 + .1666667*_k_eq_p2 + .1666667*_k_eq_p3 + .1666667*_k_eq_p4 + .1666667*_k_eq_p5 = 0 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- (1) | .9229 .05989 15.41 0.000 .8055 1.04 ------------------------------------------------------------------------------ . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) norm(1) diff No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.8328289 .1233777 -6.75 0.000 -1.074681 -.5909764 _k_eq_m5 | -.736965 .1271325 -5.80 0.000 -.986178 -.4877521 _k_eq_m4 | -.8009222 .1213221 -6.60 0.000 -1.038745 -.563099 _k_eq_m3 | -.7522801 .1154607 -6.52 0.000 -.9786132 -.525947 _k_eq_m2 | -.8517438 .1111767 -7.66 0.000 -1.069679 -.6338085 _k_eq_m1 | -.9021193 .1058732 -8.52 0.000 -1.109658 -.6945801 _k_eq_p0 | .0871124 .1026674 0.85 0.396 -.1141426 .2883674 _k_eq_p2 | .0957367 .1031843 0.93 0.354 -.1065316 .298005 _k_eq_p3 | .0599054 .1067417 0.56 0.575 -.1493363 .2691471 _k_eq_p4 | .0890452 .1110392 0.80 0.423 -.1286206 .3067111 _k_eq_p5 | .2811028 .1181413 2.38 0.017 .0495151 .5126906 _k_eq_p6 | .1706773 .105891 1.61 0.107 -.0368968 .3782514 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 2.216336 .1162453 19.07 0.000 1.988465 2.444207 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 Difference in pre and post-period averages from lincom: ( 1) - .1666667*_k_eq_m6 - .1666667*_k_eq_m5 - .1666667*_k_eq_m4 - .1666667*_k_eq_m3 - .1666667*_k_eq_m2 - .1666667*_k_eq_m1 + .1428571*_k_eq_p0 + .1428571*_k_eq_p2 + .1428571*_k_eq_p3 + .1428571*_k_eq_p4 + .1428571*_k_eq_p5 + .1428571*_k_eq_p6 = 0 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- (1) | .9247 .07987 11.58 0.000 .7682 1.081 ------------------------------------------------------------------------------ . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) norm(2) diff No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.9285656 .1294566 -7.17 0.000 -1.182334 -.6747968 _k_eq_m5 | -.8327017 .1322647 -6.30 0.000 -1.091975 -.5734282 _k_eq_m4 | -.8966588 .1261746 -7.11 0.000 -1.143994 -.6493237 _k_eq_m3 | -.8480167 .1199706 -7.07 0.000 -1.08319 -.6128431 _k_eq_m2 | -.9474805 .1152216 -8.22 0.000 -1.173345 -.7216161 _k_eq_m1 | -.997856 .1091899 -9.14 0.000 -1.211897 -.7838152 _k_eq_p0 | -.0086242 .1051532 -0.08 0.935 -.214752 .1975035 _k_eq_p1 | -.0957367 .1031843 -0.93 0.354 -.298005 .1065316 _k_eq_p3 | -.0358312 .1061712 -0.34 0.736 -.2439545 .172292 _k_eq_p4 | -.0066914 .1099779 -0.06 0.951 -.2222769 .208894 _k_eq_p5 | .1853662 .1165692 1.59 0.112 -.0431399 .4138722 _k_eq_p6 | .0749406 .1024822 0.73 0.465 -.1259513 .2758326 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 2.312073 .1223282 18.90 0.000 2.072278 2.551868 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 Difference in pre and post-period averages from lincom: ( 1) - .1666667*_k_eq_m6 - .1666667*_k_eq_m5 - .1666667*_k_eq_m4 - .1666667*_k_eq_m3 - .1666667*_k_eq_m2 - .1666667*_k_eq_m1 + .1428571*_k_eq_p0 + .1428571*_k_eq_p1 + .1428571*_k_eq_p3 + .1428571*_k_eq_p4 + .1428571*_k_eq_p5 + .1428571*_k_eq_p6 = 0 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- (1) | .9247 .07987 11.58 0.000 .7682 1.081 ------------------------------------------------------------------------------ . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) norm(-2) diff No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0189149 .1043314 0.18 0.856 -.185602 .2234318 _k_eq_m5 | .1147788 .1144395 1.00 0.316 -.1095526 .3391102 _k_eq_m4 | .0508217 .1106011 0.46 0.646 -.1659853 .2676286 _k_eq_m3 | .0994637 .106911 0.93 0.352 -.1101097 .3090372 _k_eq_m1 | -.0503755 .105976 -0.48 0.635 -.2581161 .1573651 _k_eq_p0 | .9388562 .1090921 8.61 0.000 .7250071 1.152705 _k_eq_p1 | .8517438 .1111767 7.66 0.000 .6338085 1.069679 _k_eq_p2 | .9474805 .1152216 8.22 0.000 .7216161 1.173345 _k_eq_p3 | .9116492 .1206376 7.56 0.000 .675168 1.14813 _k_eq_p4 | .9407891 .1258371 7.48 0.000 .6941154 1.187463 _k_eq_p5 | 1.132847 .1341742 8.44 0.000 .8698303 1.395863 _k_eq_p6 | 1.022421 .1268115 8.06 0.000 .7738374 1.271005 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.364592 .099556 13.71 0.000 1.169436 1.559748 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 Difference in pre and post-period averages from lincom: ( 1) - .1666667*_k_eq_m6 - .1666667*_k_eq_m5 - .1666667*_k_eq_m4 - .1666667*_k_eq_m3 - .1666667*_k_eq_m1 + .1428571*_k_eq_p0 + .1428571*_k_eq_p1 + .1428571*_k_eq_p2 + .1428571*_k_eq_p3 + .1428571*_k_eq_p4 + .1428571*_k_eq_p5 + .1428571*_k_eq_p6 = 0 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- (1) | .9247 .07987 11.58 0.000 .7682 1.081 ------------------------------------------------------------------------------ . . *Trend adjustment. Default method is GMM . xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.3045795 .235951 -1.29 0.197 -.7671052 .1579461 _k_eq_m5 | -.1339416 .1179329 -1.14 0.256 -.3651209 .0972377 _k_eq_m4 | -.1231248 .1503292 -0.82 0.413 -.4178093 .1715598 _k_eq_m3 | .0002913 .1117368 0.00 0.998 -.2187421 .2193246 _k_eq_m2 | -.0243985 .0930362 -0.26 0.793 -.2067737 .1579767 _k_eq_p0 | 1.064006 .1386137 7.68 0.000 .7922867 1.335725 _k_eq_p1 | 1.051667 .1846966 5.69 0.000 .6896137 1.413721 _k_eq_p2 | 1.222178 .2361656 5.18 0.000 .7592315 1.685124 _k_eq_p3 | 1.261121 .2901196 4.35 0.000 .6924105 1.829831 _k_eq_p4 | 1.365034 .345605 3.95 0.000 .6875584 2.042511 _k_eq_p5 | 1.631866 .402778 4.05 0.000 .8423159 2.421416 _k_eq_p6 | 1.596214 .4556476 3.50 0.000 .7030261 2.489403 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . . *Trend adjustment. Use OLS instead . xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3, method(ols)) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 220.17 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .152087 .1461162 1.04 0.298 -.134339 .438513 _k_eq_m5 | -.125934 .1836685 -0.69 0.493 -.4859723 .2341043 _k_eq_m4 | -.1151506 .1387961 -0.83 0.407 -.3872273 .1569261 _k_eq_p0 | 1.071726 .1344586 7.97 0.000 .8081522 1.3353 _k_eq_p1 | 1.059353 .1785418 5.93 0.000 .7093646 1.409342 _k_eq_p2 | 1.229822 .227273 5.41 0.000 .784308 1.675337 _k_eq_p3 | 1.268729 .278136 4.56 0.000 .7235102 1.813948 _k_eq_p4 | 1.372616 .3300606 4.16 0.000 .7256111 2.019621 _k_eq_p5 | 1.639406 .3829713 4.28 0.000 .8886821 2.39013 _k_eq_p6 | 1.155004 .1423444 8.11 0.000 .8759717 1.434036 eta | .2616643 .0096793 27.03 0.000 .2426904 .2806382 | t | 8 | .2822747 .0445983 6.33 0.000 .1948504 .3696989 9 | .4603758 .0448124 10.27 0.000 .3725319 .5482198 10 | .6894459 .0451637 15.27 0.000 .6009133 .7779785 11 | .835453 .0456933 18.28 0.000 .7458823 .9250238 12 | 1.008194 .046401 21.73 0.000 .9172362 1.099152 13 | 1.247424 .047293 26.38 0.000 1.154717 1.34013 14 | 1.396251 .048186 28.98 0.000 1.301794 1.490709 15 | 1.629377 .0491415 33.16 0.000 1.533047 1.725708 | _ttrend | -.074774 .0542561 -1.38 0.168 -.1811302 .0315822 _cons | 1.231542 .1404453 8.77 0.000 .9562324 1.506851 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 10.318 Prob > F = 0.000 . . *Compare: 1) no adjustment; 2) adjustment by GMM and; 3) adjustment by OLS . xtevent y eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, name(g1) . xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3, method(gmm)) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.3045795 .235951 -1.29 0.197 -.7671052 .1579461 _k_eq_m5 | -.1339416 .1179329 -1.14 0.256 -.3651209 .0972377 _k_eq_m4 | -.1231248 .1503292 -0.82 0.413 -.4178093 .1715598 _k_eq_m3 | .0002913 .1117368 0.00 0.998 -.2187421 .2193246 _k_eq_m2 | -.0243985 .0930362 -0.26 0.793 -.2067737 .1579767 _k_eq_p0 | 1.064006 .1386137 7.68 0.000 .7922867 1.335725 _k_eq_p1 | 1.051667 .1846966 5.69 0.000 .6896137 1.413721 _k_eq_p2 | 1.222178 .2361656 5.18 0.000 .7592315 1.685124 _k_eq_p3 | 1.261121 .2901196 4.35 0.000 .6924105 1.829831 _k_eq_p4 | 1.365034 .345605 3.95 0.000 .6875584 2.042511 _k_eq_p5 | 1.631866 .402778 4.05 0.000 .8423159 2.421416 _k_eq_p6 | 1.596214 .4556476 3.50 0.000 .7030261 2.489403 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, name(g2) . xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3, method(ols)) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 220.17 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .152087 .1461162 1.04 0.298 -.134339 .438513 _k_eq_m5 | -.125934 .1836685 -0.69 0.493 -.4859723 .2341043 _k_eq_m4 | -.1151506 .1387961 -0.83 0.407 -.3872273 .1569261 _k_eq_p0 | 1.071726 .1344586 7.97 0.000 .8081522 1.3353 _k_eq_p1 | 1.059353 .1785418 5.93 0.000 .7093646 1.409342 _k_eq_p2 | 1.229822 .227273 5.41 0.000 .784308 1.675337 _k_eq_p3 | 1.268729 .278136 4.56 0.000 .7235102 1.813948 _k_eq_p4 | 1.372616 .3300606 4.16 0.000 .7256111 2.019621 _k_eq_p5 | 1.639406 .3829713 4.28 0.000 .8886821 2.39013 _k_eq_p6 | 1.155004 .1423444 8.11 0.000 .8759717 1.434036 eta | .2616643 .0096793 27.03 0.000 .2426904 .2806382 | t | 8 | .2822747 .0445983 6.33 0.000 .1948504 .3696989 9 | .4603758 .0448124 10.27 0.000 .3725319 .5482198 10 | .6894459 .0451637 15.27 0.000 .6009133 .7779785 11 | .835453 .0456933 18.28 0.000 .7458823 .9250238 12 | 1.008194 .046401 21.73 0.000 .9172362 1.099152 13 | 1.247424 .047293 26.38 0.000 1.154717 1.34013 14 | 1.396251 .048186 28.98 0.000 1.301794 1.490709 15 | 1.629377 .0491415 33.16 0.000 1.533047 1.725708 | _ttrend | -.074774 .0542561 -1.38 0.168 -.1811302 .0315822 _cons | 1.231542 .1404453 8.77 0.000 .9562324 1.506851 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 10.318 Prob > F = 0.000 . xteventplot, name(g3) . . graph combine g1 g2 g3, rows(2) . . graph drop _all . . *Sun and Abraham Estimator (2021) . *Generate cohort indicator . * This works because of staggered adoption . gen timet=t if z==1 (17,111 missing values generated) . by i: egen time_of_treat=min(timet) (13,720 missing values generated) . *Generate control cohort indicator. We use the never treated units as the control cohort. . gen never_treat=time_of_treat==. . *Could also use last trated as the control group . egen last_treat_time = max(time_of_treat) . gen last_treat = (time_of_treat == last_treat_time) . replace last_treat = . if time_of_treat == . (13,720 real changes made, 13,720 to missing) . gen cohort_for_last_treat = time_of_treat (13,720 missing values generated) . replace cohort_for_last_treat = . if last_treat (340 real changes made, 340 to missing) . . *Estimate the event-time coefficients with the Sun-and-Abraham Estimator. . xtevent y eta , policyvar(z) window(5) vce(cluster i) impute(nuchange) cohort(variable time_of_treat) control_ > cohort(variable never_treat) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator You have specified the cohort or the sunabraham option Event-time coefficients will be estimated with the Interaction Weighted Estimator of Sun and Abraham (2021) Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(32, 999) = 1319.19 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0025 (Std. err. adjusted for 1,000 clusters in i) ------------------------------------------------------------------------------ | Robust y | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0457452 .0747931 0.61 0.541 -.1010245 .1925149 _k_eq_m5 | .1189648 .0836275 1.42 0.155 -.0451409 .2830704 _k_eq_m4 | .1165655 .0842832 1.38 0.167 -.0488269 .2819579 _k_eq_m3 | .1449931 .0775793 1.87 0.062 -.0072439 .2972301 _k_eq_m2 | .0638224 .0835375 0.76 0.445 -.1001067 .2277515 _k_eq_p0 | 1.027701 .0821568 12.51 0.000 .866481 1.18892 _k_eq_p1 | .9636293 .0898445 10.73 0.000 .7873238 1.139935 _k_eq_p2 | 1.08301 .0852336 12.71 0.000 .9157528 1.250268 _k_eq_p3 | 1.046513 .0892559 11.72 0.000 .871362 1.221663 _k_eq_p4 | .9859918 .0880341 11.20 0.000 .8132388 1.158745 _k_eq_p5 | 1.13976 .0920912 12.38 0.000 .9590461 1.320475 _k_eq_p6 | .9998216 .0864235 11.57 0.000 .8302292 1.169414 eta | .2525003 .004768 52.96 0.000 .2431439 .2618567 | t | 2 | .131826 .0457042 2.88 0.004 .0421387 .2215133 3 | .3236485 .0456104 7.10 0.000 .2341453 .4131517 4 | .5422926 .0461881 11.74 0.000 .4516557 .6329296 5 | .7656458 .0462201 16.57 0.000 .6749462 .8563454 6 | .9441123 .0466213 20.25 0.000 .8526255 1.035599 7 | 1.110485 .0462219 24.03 0.000 1.019782 1.201188 8 | 1.391892 .0456709 30.48 0.000 1.30227 1.481514 9 | 1.569177 .0458476 34.23 0.000 1.479208 1.659145 10 | 1.798732 .0457135 39.35 0.000 1.709027 1.888438 11 | 1.944693 .045547 42.70 0.000 1.855314 2.034071 12 | 2.118919 .0472219 44.87 0.000 2.026253 2.211584 13 | 2.358402 .0486343 48.49 0.000 2.262965 2.453839 14 | 2.508353 .0471617 53.19 0.000 2.415806 2.600901 15 | 2.743864 .0474198 57.86 0.000 2.65081 2.836918 16 | 2.96558 .0471802 62.86 0.000 2.872996 3.058164 17 | 3.171225 .048172 65.83 0.000 3.076695 3.265755 18 | 3.334319 .0476294 70.01 0.000 3.240854 3.427784 19 | 3.537133 .0477691 74.05 0.000 3.443394 3.630872 20 | 3.737882 .0478568 78.11 0.000 3.643971 3.831794 | _cons | .2224166 .0715959 3.11 0.002 .081921 .3629121 ------------------------------------------------------------------------------ . *Use reghdfe as the underlying estimation command . xtevent y eta , policyvar(z) window(5) vce(cluster i) impute(nuchange) cohort(variable time_of_treat) control_ > cohort(variable never_treat) reghdfe Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator You have specified the cohort or the sunabraham option Event-time coefficients will be estimated with the Interaction Weighted Estimator of Sun and Abraham (2021) HDFE Linear regression Number of obs = 20,000 Absorbing 2 HDFE groups F(13, 999) = 619.55 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0026 (Std. err. adjusted for 1,000 clusters in i) ------------------------------------------------------------------------------ | Robust y | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0457452 .0729014 0.63 0.530 -.0973123 .1888027 _k_eq_m5 | .1189648 .0815853 1.46 0.145 -.0411334 .2790629 _k_eq_m4 | .1165655 .082259 1.42 0.157 -.0448547 .2779857 _k_eq_m3 | .1449931 .0757206 1.91 0.056 -.0035966 .2935829 _k_eq_m2 | .0638224 .0815323 0.78 0.434 -.0961718 .2238166 _k_eq_p0 | 1.027701 .0802026 12.81 0.000 .8703158 1.185086 _k_eq_p1 | .9636293 .0876691 10.99 0.000 .7915927 1.135666 _k_eq_p2 | 1.08301 .0831531 13.02 0.000 .9198353 1.246185 _k_eq_p3 | 1.046513 .0871074 12.01 0.000 .8755782 1.217447 _k_eq_p4 | .9859918 .0858694 11.48 0.000 .8174868 1.154497 _k_eq_p5 | 1.13976 .0897592 12.70 0.000 .9636221 1.315899 _k_eq_p6 | .9998216 .0842215 11.87 0.000 .8345503 1.165093 eta | .2525003 .0046472 54.33 0.000 .2433809 .2616196 _cons | 2.072326 .0593099 34.94 0.000 1.955939 2.188712 ------------------------------------------------------------------------------ . * Automatic generation of cohort and control_cohort variables . xtevent y eta , policyvar(z) window(5) vce(cluster i) impute(nuchange) cohort(create) reghdfe Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator You have specified the cohort or the sunabraham option Event-time coefficients will be estimated with the Interaction Weighted Estimator of Sun and Abraham (2021) Control cohort not specified. Using values with cohort variable == . as the control cohort HDFE Linear regression Number of obs = 20,000 Absorbing 2 HDFE groups F(13, 999) = 619.55 Prob > F = 0.0000 R-squared = 0.8019 Adj R-squared = 0.7911 Root MSE = 1.0026 (Std. err. adjusted for 1,000 clusters in i) ------------------------------------------------------------------------------ | Robust y | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0457452 .0729014 0.63 0.530 -.0973123 .1888027 _k_eq_m5 | .1189648 .0815853 1.46 0.145 -.0411334 .2790629 _k_eq_m4 | .1165655 .082259 1.42 0.157 -.0448547 .2779857 _k_eq_m3 | .1449931 .0757206 1.91 0.056 -.0035966 .2935829 _k_eq_m2 | .0638224 .0815323 0.78 0.434 -.0961718 .2238166 _k_eq_p0 | 1.027701 .0802026 12.81 0.000 .8703158 1.185086 _k_eq_p1 | .9636293 .0876691 10.99 0.000 .7915927 1.135666 _k_eq_p2 | 1.08301 .0831531 13.02 0.000 .9198353 1.246185 _k_eq_p3 | 1.046513 .0871074 12.01 0.000 .8755782 1.217447 _k_eq_p4 | .9859918 .0858694 11.48 0.000 .8174868 1.154497 _k_eq_p5 | 1.13976 .0897592 12.70 0.000 .9636221 1.315899 _k_eq_p6 | .9998216 .0842215 11.87 0.000 .8345503 1.165093 eta | .2525003 .0046472 54.33 0.000 .2433809 .2616196 _cons | 2.072326 .0593099 34.94 0.000 1.955939 2.188712 ------------------------------------------------------------------------------ . . *Overlay trend plot . xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3, method(gmm) saveov) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.3045795 .235951 -1.29 0.197 -.7671052 .1579461 _k_eq_m5 | -.1339416 .1179329 -1.14 0.256 -.3651209 .0972377 _k_eq_m4 | -.1231248 .1503292 -0.82 0.413 -.4178093 .1715598 _k_eq_m3 | .0002913 .1117368 0.00 0.998 -.2187421 .2193246 _k_eq_m2 | -.0243985 .0930362 -0.26 0.793 -.2067737 .1579767 _k_eq_p0 | 1.064006 .1386137 7.68 0.000 .7922867 1.335725 _k_eq_p1 | 1.051667 .1846966 5.69 0.000 .6896137 1.413721 _k_eq_p2 | 1.222178 .2361656 5.18 0.000 .7592315 1.685124 _k_eq_p3 | 1.261121 .2901196 4.35 0.000 .6924105 1.829831 _k_eq_p4 | 1.365034 .345605 3.95 0.000 .6875584 2.042511 _k_eq_p5 | 1.631866 .402778 4.05 0.000 .8423159 2.421416 _k_eq_p6 | 1.596214 .4556476 3.50 0.000 .7030261 2.489403 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, overlay(trend) . . /* > *Overlay trend plot fails because suboption "saveov" was not specified > xtevent y eta, policyvar(z) timevar(t) window(5) trend(-3, method(gmm)) > xteventplot, overlay(trend) > */ . . * Overlay static plot . xtevent y eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, overlay(static) Estimating static model... Using options panelvar and timevar from xtset option static specified. Estimating static model Plotting options ignored No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(21, 18979) = 1869.16 Prob > F = 0.0000 R-squared = 0.8018 Adj R-squared = 0.7911 Root MSE = 1.0025 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- eta | .2528727 .0044686 56.59 0.000 .2441138 .2616316 z | .9518764 .0368223 25.85 0.000 .8797014 1.024051 | t | 2 | .1326704 .0448349 2.96 0.003 .0447899 .2205509 3 | .3256093 .0448351 7.26 0.000 .2377285 .41349 4 | .5442275 .044839 12.14 0.000 .4563391 .6321159 5 | .7678758 .0448489 17.12 0.000 .6799679 .8557837 6 | .9464576 .0448748 21.09 0.000 .8584991 1.034416 7 | 1.112496 .0449025 24.78 0.000 1.024483 1.200509 8 | 1.395807 .0449657 31.04 0.000 1.30767 1.483944 9 | 1.573173 .0450221 34.94 0.000 1.484926 1.66142 10 | 1.804388 .0450915 40.02 0.000 1.716005 1.892772 11 | 1.950891 .0451963 43.16 0.000 1.862303 2.03948 12 | 2.124391 .0452897 46.91 0.000 2.035619 2.213163 13 | 2.366152 .0454285 52.09 0.000 2.277108 2.455196 14 | 2.514806 .0455442 55.22 0.000 2.425535 2.604077 15 | 2.750965 .0456284 60.29 0.000 2.66153 2.840401 16 | 2.971668 .0457485 64.96 0.000 2.881997 3.061339 17 | 3.176473 .0458717 69.25 0.000 3.08656 3.266386 18 | 3.338556 .0459847 72.60 0.000 3.248422 3.42869 19 | 3.540866 .0460498 76.89 0.000 3.450604 3.631127 20 | 3.742714 .0462185 80.98 0.000 3.652122 3.833307 | _cons | .2687477 .0317031 8.48 0.000 .2066069 .3308886 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18979) = 21.616 Prob > F = 0.000 . . * Test graphic options . gen y2 = y - z . xtevent y2 eta, policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 156.66 Prob > F = 0.0000 R-squared = 0.7090 Adj R-squared = 0.6718 Root MSE = 0.9954 ------------------------------------------------------------------------------ y2 | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | -.0107683 .1045981 -0.10 0.918 -.2158079 .1942714 _k_eq_p1 | -.0978807 .1058732 -0.92 0.355 -.3054199 .1096585 _k_eq_p2 | -.002144 .1091899 -0.02 0.984 -.2161848 .2118968 _k_eq_p3 | -.0379753 .114047 -0.33 0.739 -.2615371 .1855866 _k_eq_p4 | -.0088354 .1189692 -0.07 0.941 -.2420463 .2243754 _k_eq_p5 | .1832222 .1269706 1.44 0.149 -.0656733 .4321176 _k_eq_p6 | .0727966 .1182986 0.62 0.538 -.1590996 .3046928 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, smplotopts(lcolor(green)) smpath(line) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 21.0260698 Order 0 Wald value 12.4887323 . xteventplot, ciplotopts(lcolor(green)) . xteventplot, suptciplotopts(lcolor(green)) . xteventplot, scatterplotopts(mcolor(green)) . xteventplot, overlay(static) staticovplotopts(lcolor(red)) Estimating static model... Using options panelvar and timevar from xtset option static specified. Estimating static model Plotting options ignored No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(21, 18979) = 1479.47 Prob > F = 0.0000 R-squared = 0.7664 Adj R-squared = 0.7538 Root MSE = 1.0025 ------------------------------------------------------------------------------ y2 | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- eta | .2528727 .0044686 56.59 0.000 .2441138 .2616316 z | -.0481236 .0368223 -1.31 0.191 -.1202986 .0240515 | t | 2 | .1326704 .0448349 2.96 0.003 .0447899 .2205509 3 | .3256093 .0448351 7.26 0.000 .2377285 .41349 4 | .5442275 .044839 12.14 0.000 .4563391 .6321159 5 | .7678758 .0448489 17.12 0.000 .6799679 .8557837 6 | .9464576 .0448748 21.09 0.000 .8584991 1.034416 7 | 1.112496 .0449025 24.78 0.000 1.024483 1.200509 8 | 1.395807 .0449657 31.04 0.000 1.30767 1.483944 9 | 1.573173 .0450221 34.94 0.000 1.484926 1.66142 10 | 1.804388 .0450915 40.02 0.000 1.716005 1.892772 11 | 1.950891 .0451963 43.16 0.000 1.862303 2.03948 12 | 2.124391 .0452897 46.91 0.000 2.035619 2.213163 13 | 2.366152 .0454285 52.09 0.000 2.277108 2.455196 14 | 2.514806 .0455442 55.22 0.000 2.425535 2.604077 15 | 2.750965 .0456284 60.29 0.000 2.66153 2.840401 16 | 2.971668 .0457485 64.96 0.000 2.881997 3.061339 17 | 3.176473 .0458717 69.25 0.000 3.08656 3.266386 18 | 3.338556 .0459847 72.60 0.000 3.248422 3.42869 19 | 3.540866 .0460498 76.89 0.000 3.450604 3.631127 20 | 3.742714 .0462185 80.98 0.000 3.652122 3.833307 | _cons | .2687477 .0317031 8.48 0.000 .2066069 .3308886 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18979) = 21.616 Prob > F = 0.000 . . xtevent y2 eta, policyvar(z) timevar(t) window(5) trend(-3, saveov) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 156.66 Prob > F = 0.0000 R-squared = 0.7090 Adj R-squared = 0.6718 Root MSE = 0.9954 ------------------------------------------------------------------------------ y2 | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.3045795 .235951 -1.29 0.197 -.7671052 .1579461 _k_eq_m5 | -.1339416 .1179329 -1.14 0.256 -.3651209 .0972377 _k_eq_m4 | -.1231248 .1503292 -0.82 0.413 -.4178093 .1715598 _k_eq_m3 | .0002913 .1117368 0.00 0.998 -.2187421 .2193246 _k_eq_m2 | -.0243985 .0930362 -0.26 0.793 -.2067737 .1579767 _k_eq_p0 | .0640057 .1386137 0.46 0.644 -.2077133 .3357247 _k_eq_p1 | .0516673 .1846966 0.28 0.780 -.3103863 .4137208 _k_eq_p2 | .2221779 .2361656 0.94 0.347 -.2407685 .6851243 _k_eq_p3 | .2611206 .2901196 0.90 0.368 -.3075895 .8298308 _k_eq_p4 | .3650344 .345605 1.06 0.291 -.3124416 1.042511 _k_eq_p5 | .631866 .402778 1.57 0.117 -.1576841 1.421416 _k_eq_p6 | .5962144 .4556476 1.31 0.191 -.2969739 1.489403 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, overlay(trend) trendplotopts(lcolor(red)) . xtevent y eta, policyvar(z) proxy(x) window(5) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2538 min = 9 Between = 0.4789 avg = 9.0 Overall = 0.3968 max = 9 Wald chi2(21) = 47985.01 corr(u_i, Xb) = -0.0138 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | -.1891729 .4282553 -0.44 0.659 -1.028538 .6501921 eta | .4553417 .4393966 1.04 0.300 -.4058599 1.316543 _k_eq_m6 | .006805 .1269478 0.05 0.957 -.2420081 .2556182 _k_eq_m5 | .115823 .1221515 0.95 0.343 -.1235894 .3552355 _k_eq_m4 | .0975308 .1178861 0.83 0.408 -.1335217 .3285833 _k_eq_m3 | .0545602 .1865571 0.29 0.770 -.311085 .4202055 _k_eq_p0 | .9472992 .1085393 8.73 0.000 .7345662 1.160032 _k_eq_p1 | .8929201 .1062188 8.41 0.000 .6847352 1.101105 _k_eq_p2 | 1.000582 .1202635 8.32 0.000 .7648698 1.236294 _k_eq_p3 | .9718776 .1332396 7.29 0.000 .7107328 1.233022 _k_eq_p4 | 1.007802 .146495 6.88 0.000 .7206766 1.294926 _k_eq_p5 | 1.162446 .1281236 9.07 0.000 .9113283 1.413564 _k_eq_p6 | 1.084567 .1392478 7.79 0.000 .8116461 1.357488 | t | 8 | .2833069 .0480274 5.90 0.000 .1891749 .3774389 9 | .4653898 .0495002 9.40 0.000 .3683713 .5624084 10 | .665972 .0715352 9.31 0.000 .5257657 .8061784 11 | .8219499 .0577258 14.24 0.000 .7088094 .9350903 12 | .9853908 .0710185 13.88 0.000 .8461971 1.124584 13 | 1.252472 .0525292 23.84 0.000 1.149517 1.355428 14 | 1.377356 .0658765 20.91 0.000 1.24824 1.506471 15 | 1.609044 .0690944 23.29 0.000 1.473622 1.744467 | _cons | 1.378174 .1250455 11.02 0.000 1.13309 1.623259 -------------+---------------------------------------------------------------- sigma_u | 1.0750775 sigma_e | 1.0712008 rho | .50180624 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7979) = 8.91 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: eta _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xteventplot, overlay(iv) scatterplotopts(mcolor(green red)) . xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(5) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 209.66 Prob > F = 0.0000 R-squared = 0.7545 Adj R-squared = 0.7231 Root MSE = 0.9954 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .0692904 .1104722 0.63 0.531 -.147264 .2858448 _k_eq_m5 | .1651543 .1178905 1.40 0.161 -.0659419 .3962505 _k_eq_m4 | .1011972 .1131376 0.89 0.371 -.120582 .3229763 _k_eq_m3 | .1498392 .108524 1.38 0.167 -.0628963 .3625747 _k_eq_m2 | .0503755 .105976 0.48 0.635 -.1573651 .2581161 _k_eq_p0 | .9892317 .1045981 9.46 0.000 .7841921 1.194271 _k_eq_p1 | .9021193 .1058732 8.52 0.000 .6945801 1.109658 _k_eq_p2 | .997856 .1091899 9.14 0.000 .7838152 1.211897 _k_eq_p3 | .9620247 .114047 8.44 0.000 .7384629 1.185587 _k_eq_p4 | .9911646 .1189692 8.33 0.000 .7579537 1.224375 _k_eq_p5 | 1.183222 .1269706 9.32 0.000 .9343267 1.432118 _k_eq_p6 | 1.072797 .1182986 9.07 0.000 .8409004 1.304693 eta | .2616307 .0096806 27.03 0.000 .2426541 .2806073 | t | 8 | .282378 .0446025 6.33 0.000 .1949454 .3698106 9 | .4604956 .0448172 10.27 0.000 .3726422 .5483491 10 | .6894495 .0451663 15.26 0.000 .6009118 .7779873 11 | .835558 .0456976 18.28 0.000 .7459787 .9251373 12 | 1.008256 .0464042 21.73 0.000 .9172915 1.09922 13 | 1.247446 .0472958 26.38 0.000 1.154734 1.340159 14 | 1.396196 .0481892 28.97 0.000 1.301732 1.490659 15 | 1.629461 .0491454 33.16 0.000 1.533123 1.725798 | _cons | 1.314217 .1041623 12.62 0.000 1.110031 1.518402 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.317 Prob > F = 0.000 . xteventplot, textboxoption(color(blue) size(large)) . drop y2 . . ******** Repeated cross-sectional data . use "small_repeated_cross_sectional_example31.dta", clear . xtset, clear . *OLS, impute and trend adjustment . xtevent y, panelvar(state) t(t) policyvar(z) window(5) trend(-3, method(ols)) impute(instag) repeatedcs Option repeatedcs was specified. Using state as the panel variable and t as the time variable. No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: state No. of categories = 46 F(30, 19924) = 501.73 Prob > F = 0.0000 R-squared = 0.4891 Adj R-squared = 0.4872 Root MSE = 1.5321 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.9572861 .1506114 -6.36 0.000 -1.252497 -.6620752 _k_eq_m5 | .0630063 .2266954 0.28 0.781 -.3813356 .5073482 _k_eq_m4 | .0204146 .1677208 0.12 0.903 -.3083321 .3491613 _k_eq_p0 | 1.354622 .1691528 8.01 0.000 1.023068 1.686175 _k_eq_p1 | 1.309062 .2265444 5.78 0.000 .8650158 1.753107 _k_eq_p2 | 1.05276 .2851788 3.69 0.000 .4937856 1.611734 _k_eq_p3 | .8609978 .3488805 2.47 0.014 .177163 1.544833 _k_eq_p4 | .7594336 .4160377 1.83 0.068 -.0560348 1.574902 _k_eq_p5 | .7364398 .4791461 1.54 0.124 -.2027265 1.675606 _k_eq_p6 | 1.480669 .1536515 9.64 0.000 1.1795 1.781839 | t | 2 | .1605088 .0685599 2.34 0.019 .0261257 .2948919 3 | .347211 .0687225 5.05 0.000 .2125092 .4819128 4 | .4714624 .0697707 6.76 0.000 .334706 .6082188 5 | .696866 .0692968 10.06 0.000 .5610385 .8326935 6 | .8783032 .0695551 12.63 0.000 .7419694 1.014637 7 | .9886194 .069542 14.22 0.000 .8523113 1.124928 8 | 1.067171 .068226 15.64 0.000 .9334419 1.200899 9 | 1.401201 .0690535 20.29 0.000 1.26585 1.536551 10 | 1.52225 .0700112 21.74 0.000 1.385022 1.659478 11 | 1.680582 .0689167 24.39 0.000 1.5455 1.815664 12 | 1.915238 .0697235 27.47 0.000 1.778574 2.051902 13 | 2.041331 .0708033 28.83 0.000 1.90255 2.180111 14 | 2.261005 .07105 31.82 0.000 2.121741 2.400269 15 | 2.526357 .0710457 35.56 0.000 2.387101 2.665612 16 | 2.602506 .070027 37.16 0.000 2.465248 2.739765 17 | 2.766492 .0706359 39.17 0.000 2.62804 2.904944 18 | 2.983379 .071517 41.72 0.000 2.843199 3.123558 19 | 3.22391 .0714606 45.11 0.000 3.083842 3.363979 20 | 3.332237 .0716124 46.53 0.000 3.19187 3.472603 | _ttrend | .1456503 .0662629 2.20 0.028 .0157695 .2755311 _cons | 1.207149 .1580242 7.64 0.000 .8974083 1.516889 ------------------------------------------------------------------------------ F test of absorbed indicators: F(45, 19924) = 2.630 Prob > F = 0.000 . xteventplot . *IV . xtevent y, panelvar(state) t(t) policyvar(z) window(5) impute(stag) proxy(x) repeatedcs Option repeatedcs was specified. Using state as the panel variable and t as the time variable. Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Using reghdfe for fixed effects estimation with repeated cross-sectional data. (MWFE estimator converged in 4 iterations) IV (2SLS) estimation -------------------- Estimates efficient for homoskedasticity only Statistics consistent for homoskedasticity only Number of obs = 19005 F( 12, 18929) = 123.84 Prob > F = 0.0000 Total (centered) SS = 47851.7849 Centered R2 = 0.0360 Total (uncentered) SS = 47851.7849 Uncentered R2 = 0.0360 Residual SS = 46127.15415 Root MSE = 1.561 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | .3083501 .2044421 1.51 0.132 -.0923747 .7090749 _k_eq_m6 | .2492553 .6515091 0.38 0.702 -1.027761 1.526271 _k_eq_m5 | .2050635 .441973 0.46 0.643 -.6612431 1.07137 _k_eq_m4 | .22665 .3887728 0.58 0.560 -.5353795 .9886795 _k_eq_m3 | .0179494 .1799183 0.10 0.921 -.3347065 .3706052 _k_eq_p0 | .9611815 .4237939 2.27 0.023 .1305076 1.791855 _k_eq_p1 | 1.079407 .4377671 2.47 0.014 .2213449 1.93747 _k_eq_p2 | .8585338 .4793251 1.79 0.073 -.0809862 1.798054 _k_eq_p3 | .7450697 .4936962 1.51 0.131 -.222619 1.712758 _k_eq_p4 | .8918057 .4783669 1.86 0.062 -.0458362 1.829448 _k_eq_p5 | .8355085 .5809125 1.44 0.150 -.303132 1.974149 _k_eq_p6 | .8220337 .5797774 1.42 0.156 -.3143817 1.958449 ------------------------------------------------------------------------------ Underidentification test (Anderson canon. corr. LM statistic): 6.684 Chi-sq(1) P-val = 0.0097 ------------------------------------------------------------------------------ Weak identification test (Cragg-Donald Wald F statistic): 6.660 Stock-Yogo weak ID test critical values: 10% maximal IV size 16.38 15% maximal IV size 8.96 20% maximal IV size 6.66 25% maximal IV size 5.53 Source: Stock-Yogo (2005). Reproduced by permission. ------------------------------------------------------------------------------ Sargan statistic (overidentification test of all instruments): 0.000 (equation exactly identified) ------------------------------------------------------------------------------ Instrumented: x Included instruments: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 Excluded instruments: _fd1__00000M Partialled-out: _cons nb: total SS, model F and R2s are after partialling-out; any small-sample adjustments include partialled-out variables in regressor count K ------------------------------------------------------------------------------ Absorbed degrees of freedom: -----------------------------------------------------+ Absorbed FE | Categories - Redundant = Num. Coefs | -------------+---------------------------------------| state | 46 0 46 | t | 19 1 18 | -----------------------------------------------------+ . xteventplot . xteventplot, overlay(iv) . . *static ols . xtevent y, panelvar(state) t(t) policyvar(z) impute(stag) static repeatedcs Option repeatedcs was specified. Using state as the panel variable and t as the time variable. option static specified. Estimating static model Plotting options ignored No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: state No. of categories = 46 F(20, 19934) = 744.21 Prob > F = 0.0000 R-squared = 0.4866 Adj R-squared = 0.4849 Root MSE = 1.5356 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- z_imputed | 2.023979 .0503121 40.23 0.000 1.925364 2.122595 | t | 2 | .1676187 .0687028 2.44 0.015 .0329555 .3022819 3 | .3802633 .0687517 5.53 0.000 .2455042 .5150223 4 | .5078863 .0698064 7.28 0.000 .3710599 .6447127 5 | .7472692 .0692284 10.79 0.000 .6115757 .8829627 6 | .9364629 .0694271 13.49 0.000 .80038 1.072546 7 | 1.057862 .0692967 15.27 0.000 .9220348 1.193689 8 | 1.136833 .0679366 16.73 0.000 1.003672 1.269995 9 | 1.46715 .0687868 21.33 0.000 1.332322 1.601977 10 | 1.602228 .0696061 23.02 0.000 1.465794 1.738662 11 | 1.763134 .0684208 25.77 0.000 1.629024 1.897245 12 | 2.003192 .0692596 28.92 0.000 1.867437 2.138947 13 | 2.14208 .0701629 30.53 0.000 2.004555 2.279605 14 | 2.363576 .0703703 33.59 0.000 2.225645 2.501508 15 | 2.632911 .0702403 37.48 0.000 2.495234 2.770588 16 | 2.710091 .0691976 39.16 0.000 2.574458 2.845724 17 | 2.871419 .0697862 41.15 0.000 2.734632 3.008205 18 | 3.088504 .0705883 43.75 0.000 2.950145 3.226863 19 | 3.33021 .0704581 47.27 0.000 3.192106 3.468314 20 | 3.433454 .0706181 48.62 0.000 3.295037 3.571872 | _cons | .2586998 .0489467 5.29 0.000 .1627602 .3546395 ------------------------------------------------------------------------------ F test of absorbed indicators: F(45, 19934) = 6.734 Prob > F = 0.000 . *static IV . xtevent y, panelvar(state) t(t) policyvar(z) impute(stag) proxy(x) static repeatedcs Option repeatedcs was specified. Using state as the panel variable and t as the time variable. option static specified. Estimating static model Plotting options ignored Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. Fixed-effects (within) IV regression Number of obs = 19,005 Group variable: state Number of groups = 46 R-squared: Obs per group: Within = 0.4256 min = 249 Between = 0.9838 avg = 413.2 Overall = 0.4862 max = 486 Wald chi2(20) = 51510.98 corr(u_i, Xb) = -0.0229 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .2382911 .0391435 6.09 0.000 .1615713 .3150108 z_imputed | 1.025171 .1676194 6.12 0.000 .6966435 1.353699 | t | 2 | .2133027 .0677779 3.15 0.002 .0804605 .3461448 3 | .4141609 .0676509 6.12 0.000 .2815676 .5467542 4 | .5769161 .0693839 8.31 0.000 .4409263 .712906 5 | .8112636 .0687282 11.80 0.000 .6765588 .9459684 6 | .9627499 .0682077 14.11 0.000 .8290653 1.096435 7 | 1.123886 .068788 16.34 0.000 .9890638 1.258708 8 | 1.270686 .0700548 18.14 0.000 1.133381 1.407991 9 | 1.595758 .0705044 22.63 0.000 1.457572 1.733944 10 | 1.740506 .0718068 24.24 0.000 1.599768 1.881245 11 | 1.935654 .0725515 26.68 0.000 1.793455 2.077852 12 | 2.21381 .0759385 29.15 0.000 2.064973 2.362647 13 | 2.351229 .0765389 30.72 0.000 2.201215 2.501242 14 | 2.572205 .0766801 33.54 0.000 2.421914 2.722495 15 | 2.857614 .077698 36.78 0.000 2.705329 3.0099 16 | 2.942488 .0773749 38.03 0.000 2.790836 3.09414 17 | 3.163412 .0829461 38.14 0.000 3.00084 3.325983 18 | 3.343739 .0804814 41.55 0.000 3.185999 3.50148 19 | 3.648547 .0859368 42.46 0.000 3.480114 3.81698 | _cons | .2399397 .0480963 4.99 0.000 .1456726 .3342067 -------------+---------------------------------------------------------------- sigma_u | .08896771 sigma_e | 1.50587 rho | .00347838 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(45,18939) = 1.30 Prob > F = 0.0837 ------------------------------------------------------------------------------ Endogenous: x Exogenous: z_imputed 2.t 3.t 4.t 5.t 6.t 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t 17.t 18.t 19.t _fd1z_imputed . . *get unit time effects . get_unit_time_effects y u eta, panelvar(state) timevar(t) saving("effect_file.dta", replace) Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: unittimeinteraction No. of categories = 920 F(2, 19078) = 1504.21 Prob > F = 0.0000 R-squared = 0.5781 Adj R-squared = 0.5577 Root MSE = 1.4229 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- u | -.001644 .0051352 -0.32 0.749 -.0117095 .0084214 eta | .2550361 .0046498 54.85 0.000 .2459221 .2641501 _cons | 2.251179 .0100644 223.68 0.000 2.231452 2.270906 ------------------------------------------------------------------------------ F test of absorbed indicators: F(919, 19078) = 18.418 Prob > F = 0.000 file effect_file.dta saved . . *get_unit_time_effects + xtevent . get_unit_time_effects y u eta, panelvar(state) timevar(t) saving("effect_file.dta", replace) Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: unittimeinteraction No. of categories = 920 F(2, 19078) = 1504.21 Prob > F = 0.0000 R-squared = 0.5781 Adj R-squared = 0.5577 Root MSE = 1.4229 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- u | -.001644 .0051352 -0.32 0.749 -.0117095 .0084214 eta | .2550361 .0046498 54.85 0.000 .2459221 .2641501 _cons | 2.251179 .0100644 223.68 0.000 2.231452 2.270906 ------------------------------------------------------------------------------ F test of absorbed indicators: F(919, 19078) = 18.418 Prob > F = 0.000 file effect_file.dta saved . bysort state t (z): keep if _n==1 (19,080 observations deleted) . keep state t z . merge m:1 state t using "effect_file.dta" Result Number of obs ----------------------------------------- Not matched 0 Matched 920 (_merge==3) ----------------------------------------- . drop _merge . xtevent _unittimeeffects, panelvar(state) t(t) policyvar(z) window(5) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 414 Absorbed variable: state No. of categories = 46 F(20, 348) = 79.91 Prob > F = 0.0000 R-squared = 0.8504 Adj R-squared = 0.8225 Root MSE = 0.3233 ------------------------------------------------------------------------------ _unittimee~s | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | .040263 .1525886 0.26 0.792 -.259849 .3403749 _k_eq_m5 | .19858 .1646535 1.21 0.229 -.1252611 .5224211 _k_eq_m4 | .224199 .1603164 1.40 0.163 -.091112 .5395099 _k_eq_m3 | .2520825 .1566749 1.61 0.109 -.0560663 .5602312 _k_eq_m2 | .1545788 .1539657 1.00 0.316 -.1482416 .4573991 _k_eq_p0 | 1.144426 .1539818 7.43 0.000 .8415734 1.447278 _k_eq_p1 | 1.220535 .1567996 7.78 0.000 .9121414 1.52893 _k_eq_p2 | 1.071692 .1607148 6.67 0.000 .7555971 1.387786 _k_eq_p3 | 1.102224 .1685971 6.54 0.000 .7706266 1.433822 _k_eq_p4 | 1.269389 .1780274 7.13 0.000 .9192437 1.619534 _k_eq_p5 | 1.113971 .1894849 5.88 0.000 .7412915 1.486651 _k_eq_p6 | 1.33035 .1752273 7.59 0.000 .9857118 1.674987 | t | 8 | .1635674 .0675319 2.42 0.016 .0307455 .2963894 9 | .4627374 .0678297 6.82 0.000 .3293296 .5961452 10 | .6030953 .0683276 8.83 0.000 .4687083 .7374823 11 | .7896641 .0690418 11.44 0.000 .6538725 .9254558 12 | 1.071347 .0700234 15.30 0.000 .9336251 1.20907 13 | 1.211792 .0712616 17.00 0.000 1.071634 1.351949 14 | 1.42655 .0727431 19.61 0.000 1.283479 1.569622 15 | 1.692904 .0744535 22.74 0.000 1.546468 1.839339 | _cons | -.9467688 .1473088 -6.43 0.000 -1.236496 -.6570413 ------------------------------------------------------------------------------ F test of absorbed indicators: F(45, 348) = 1.154 Prob > F = 0.240 . xteventplot . . *------------------------ 2.2: Replicate 2b and test basic funcionality without controls --------------------- > ------------- . . * load panel dataset . use "example31.dta", clear . . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . . * Testing xtset options . . xtevent y , policyvar(z) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xtevent y , policyvar(z) panelvar(i) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xtevent y , policyvar(z) timevar(t) window(5) plot Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . . . /* Must fail > xtevent y eta, policyvar(z) panelvar(z) window(5) > xtevent y eta, policyvar(z) timevar(z) window(5) > */ . . * Testing noci, nosupt, nozeroline, nonormlabel . xtevent y , policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xteventplot, noci option noci has been specified. Confidence intervals won't be displayed . xteventplot, nosupt option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated . xteventplot, nozeroline option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, nonormlabel option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . . * Test if/in . xtevent y if i<100, panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 891 Absorbed variable: i No. of categories = 99 F(20, 772) = 14.33 Prob > F = 0.0000 R-squared = 0.7459 Adj R-squared = 0.7071 Root MSE = 1.0907 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.289482 .3523182 -3.66 0.000 -1.981097 -.5978667 _k_eq_m5 | -1.457549 .4044194 -3.60 0.000 -2.251442 -.6636573 _k_eq_m4 | -.6645771 .3655596 -1.82 0.069 -1.382186 .0530317 _k_eq_m3 | -.506135 .3529993 -1.43 0.152 -1.199087 .1868172 _k_eq_m2 | -.4994538 .3582824 -1.39 0.164 -1.202777 .2038696 _k_eq_p0 | .9820397 .3489801 2.81 0.005 .2969772 1.667102 _k_eq_p1 | 1.433219 .3564462 4.02 0.000 .7335001 2.132937 _k_eq_p2 | 1.323441 .366288 3.61 0.000 .6044023 2.042479 _k_eq_p3 | 1.506092 .3756106 4.01 0.000 .7687526 2.243431 _k_eq_p4 | 1.641353 .3857475 4.25 0.000 .884115 2.398592 _k_eq_p5 | 1.453211 .4352421 3.34 0.001 .5988127 2.307609 _k_eq_p6 | 1.871759 .3911511 4.79 0.000 1.103913 2.639605 | t | 8 | .1227486 .1561946 0.79 0.432 -.1838679 .4293651 9 | .2654292 .1572615 1.69 0.092 -.0432817 .5741401 10 | .612676 .1576497 3.89 0.000 .3032032 .9221489 11 | .6502904 .1596035 4.07 0.000 .3369821 .9635987 12 | .5285836 .1623955 3.25 0.001 .2097945 .8473728 13 | .7592658 .1654854 4.59 0.000 .4344112 1.08412 14 | .9956726 .1684167 5.91 0.000 .6650636 1.326282 15 | 1.125275 .1710936 6.58 0.000 .7894113 1.461139 | _cons | 2.459318 .3332129 7.38 0.000 1.805207 3.113429 ------------------------------------------------------------------------------ F test of absorbed indicators: F(98, 772) = 11.892 Prob > F = 0.000 . xtevent y in 1/600 , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 270 Absorbed variable: i No. of categories = 30 F(20, 220) = 5.07 Prob > F = 0.0000 R-squared = 0.7506 Adj R-squared = 0.6950 Root MSE = 1.0124 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.818828 .6029989 -3.02 0.003 -3.007222 -.6304343 _k_eq_m5 | -2.110746 .7352303 -2.87 0.004 -3.559742 -.6617499 _k_eq_m4 | -1.61051 .5908942 -2.73 0.007 -2.775048 -.4459727 _k_eq_m3 | -1.10703 .6003189 -1.84 0.067 -2.290142 .0760817 _k_eq_m2 | -.6970733 .5976955 -1.17 0.245 -1.875015 .4808683 _k_eq_p0 | -.5019889 .6143602 -0.82 0.415 -1.712773 .7087955 _k_eq_p1 | .7226575 .6161001 1.17 0.242 -.4915559 1.936871 _k_eq_p2 | .4647375 .6486201 0.72 0.474 -.8135666 1.743042 _k_eq_p3 | .9350326 .6575181 1.42 0.156 -.3608078 2.230873 _k_eq_p4 | -.6014809 .6597441 -0.91 0.363 -1.901708 .6987465 _k_eq_p5 | -.1799007 .9219644 -0.20 0.845 -1.996913 1.637112 _k_eq_p6 | -.5189833 .7474141 -0.69 0.488 -1.991991 .9540246 | t | 8 | -.0653896 .2681927 -0.24 0.808 -.5939452 .463166 9 | .0106017 .2699834 0.04 0.969 -.5214831 .5426865 10 | .2101263 .2670963 0.79 0.432 -.3162686 .7365212 11 | .4965991 .2716661 1.83 0.069 -.038802 1.032 12 | .4595808 .2789724 1.65 0.101 -.0902195 1.009381 13 | .7809989 .2810378 2.78 0.006 .227128 1.33487 14 | .9348711 .2869291 3.26 0.001 .3693895 1.500353 15 | 1.108876 .2887667 3.84 0.000 .5397727 1.677979 | _cons | 2.925228 .5815295 5.03 0.000 1.779147 4.07131 ------------------------------------------------------------------------------ F test of absorbed indicators: F(29, 220) = 11.351 Prob > F = 0.000 . xtevent y in 1/600 if i<30 , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 261 Absorbed variable: i No. of categories = 29 F(20, 212) = 4.66 Prob > F = 0.0000 R-squared = 0.7373 Adj R-squared = 0.6778 Root MSE = 1.0141 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -2.088575 .7031077 -2.97 0.003 -3.474553 -.7025968 _k_eq_m5 | -2.375481 .8565452 -2.77 0.006 -4.063918 -.687045 _k_eq_m4 | -1.635169 .6502745 -2.51 0.013 -2.917001 -.3533367 _k_eq_m3 | -1.017041 .6672765 -1.52 0.129 -2.332388 .2983062 _k_eq_m2 | -1.129732 .6667367 -1.69 0.092 -2.444015 .1845506 _k_eq_p0 | -.5797828 .6415577 -0.90 0.367 -1.844432 .6848667 _k_eq_p1 | .5881249 .6454666 0.91 0.363 -.6842298 1.86048 _k_eq_p2 | .3605432 .6687536 0.54 0.590 -.9577153 1.678802 _k_eq_p3 | .9098129 .6784639 1.34 0.181 -.4275866 2.247212 _k_eq_p4 | -.7114416 .686879 -1.04 0.301 -2.065429 .6425461 _k_eq_p5 | -.2951956 .9356421 -0.32 0.753 -2.139549 1.549158 _k_eq_p6 | -.5840895 .7664022 -0.76 0.447 -2.094835 .9266556 | t | 8 | -.0538665 .2748302 -0.20 0.845 -.5956165 .4878834 9 | .0872088 .2771097 0.31 0.753 -.4590345 .6334521 10 | .1673084 .2733729 0.61 0.541 -.3715689 .7061857 11 | .5000997 .2764636 1.81 0.072 -.0448701 1.045069 12 | .5148428 .2867046 1.80 0.074 -.0503142 1.08 13 | .819212 .2853343 2.87 0.005 .2567562 1.381668 14 | .8658287 .2916305 2.97 0.003 .2909616 1.440696 15 | 1.148375 .2931289 3.92 0.000 .5705542 1.726196 | _cons | 3.059257 .6653599 4.60 0.000 1.747689 4.370826 ------------------------------------------------------------------------------ F test of absorbed indicators: F(28, 212) = 10.279 Prob > F = 0.000 . . * Test nofe, note . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) nofe plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(20, 8979) = 223.83 Model | 10714.0449 20 535.702247 Prob > F = 0.0000 Residual | 21489.5662 8,979 2.39331398 R-squared = 0.3327 -------------+---------------------------------- Adj R-squared = 0.3312 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.547 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.259692 .115011 -10.95 0.000 -1.48514 -1.034244 _k_eq_m5 | -.377586 .1674145 -2.26 0.024 -.7057565 -.0494154 _k_eq_m4 | -.3920709 .1657321 -2.37 0.018 -.7169437 -.0671981 _k_eq_m3 | -.1933442 .1627174 -1.19 0.235 -.5123075 .125619 _k_eq_m2 | -.1875605 .1622523 -1.16 0.248 -.5056121 .1304911 _k_eq_p0 | 1.312202 .159627 8.22 0.000 .9992967 1.625107 _k_eq_p1 | 1.217026 .1590039 7.65 0.000 .9053417 1.52871 _k_eq_p2 | 1.324566 .1604923 8.25 0.000 1.009965 1.639168 _k_eq_p3 | 1.27211 .163783 7.77 0.000 .951058 1.593162 _k_eq_p4 | 1.249694 .1681847 7.43 0.000 .9200139 1.579375 _k_eq_p5 | 1.532354 .1760626 8.70 0.000 1.187231 1.877477 _k_eq_p6 | 1.355879 .1413837 9.59 0.000 1.078735 1.633024 | t | 8 | .2515293 .0692194 3.63 0.000 .1158436 .3872151 9 | .3986636 .0692411 5.76 0.000 .2629352 .5343919 10 | .6083407 .0692928 8.78 0.000 .4725111 .7441703 11 | .7191093 .0693718 10.37 0.000 .5831247 .8550939 12 | .8605161 .0694641 12.39 0.000 .7243507 .9966816 13 | 1.060749 .0696039 15.24 0.000 .9243096 1.197189 14 | 1.197118 .0698006 17.15 0.000 1.060293 1.333943 15 | 1.423055 .0700362 20.32 0.000 1.285768 1.560342 | _cons | 2.412556 .1217971 19.81 0.000 2.173806 2.651306 ------------------------------------------------------------------------------ . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) nofe note plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(12, 8987) = 294.16 Model | 9081.69274 12 756.807728 Prob > F = 0.0000 Residual | 23121.9184 8,987 2.57281834 R-squared = 0.2820 -------------+---------------------------------- Adj R-squared = 0.2810 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.604 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -1.225151 .1192195 -10.28 0.000 -1.458848 -.9914536 _k_eq_m5 | -.3710988 .1735397 -2.14 0.033 -.7112761 -.0309215 _k_eq_m4 | -.4051251 .1718146 -2.36 0.018 -.741921 -.0683292 _k_eq_m3 | -.1753739 .1686732 -1.04 0.298 -.5060118 .155264 _k_eq_m2 | -.1544533 .1681856 -0.92 0.358 -.4841354 .1752288 _k_eq_p0 | 1.356497 .1654494 8.20 0.000 1.032178 1.680816 _k_eq_p1 | 1.280432 .1648121 7.77 0.000 .9573628 1.603501 _k_eq_p2 | 1.422208 .1663271 8.55 0.000 1.096168 1.748247 _k_eq_p3 | 1.403454 .1696779 8.27 0.000 1.070847 1.736061 _k_eq_p4 | 1.459003 .1741401 8.38 0.000 1.117649 1.800358 _k_eq_p5 | 1.819137 .1821451 9.99 0.000 1.462091 2.176183 _k_eq_p6 | 1.82939 .1452591 12.59 0.000 1.544649 2.114131 _cons | 3.076781 .117611 26.16 0.000 2.846237 3.307326 ------------------------------------------------------------------------------ . . * Test smoothest line . xtevent y , panelvar(i) timevar(t) policyvar(z) window(3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(20, 11980) = 472.86 Prob > F = 0.0000 R-squared = 0.7371 Adj R-squared = 0.7148 Root MSE = 1.0644 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | -.5447307 .0778204 -7.00 0.000 -.6972713 -.39219 _k_eq_m3 | -.1505628 .0950092 -1.58 0.113 -.3367962 .0356706 _k_eq_m2 | -.0631956 .0944157 -0.67 0.503 -.2482657 .1218745 _k_eq_p0 | 1.461537 .0937663 15.59 0.000 1.27774 1.645334 _k_eq_p1 | 1.432239 .0952458 15.04 0.000 1.245542 1.618936 _k_eq_p2 | 1.520175 .0967991 15.70 0.000 1.330434 1.709917 _k_eq_p3 | 1.542299 .0992803 15.53 0.000 1.347693 1.736905 _k_eq_p4 | 1.653742 .081142 20.38 0.000 1.494691 1.812793 | t | 6 | .1528999 .0476243 3.21 0.001 .0595486 .2462512 7 | .3046591 .0476683 6.39 0.000 .2112215 .3980966 8 | .5658986 .0477605 11.85 0.000 .4722802 .659517 9 | .7226899 .0478856 15.09 0.000 .6288264 .8165535 10 | .9382351 .0480604 19.52 0.000 .8440288 1.032441 11 | 1.051662 .048284 21.78 0.000 .957018 1.146307 12 | 1.200805 .0485412 24.74 0.000 1.105657 1.295954 13 | 1.410551 .04881 28.90 0.000 1.314876 1.506227 14 | 1.544048 .0491468 31.42 0.000 1.447713 1.640384 15 | 1.776522 .0495137 35.88 0.000 1.679467 1.873577 16 | 1.966509 .0498436 39.45 0.000 1.868808 2.064211 17 | 2.164314 .0502499 43.07 0.000 2.065816 2.262812 | _cons | 1.508062 .0820664 18.38 0.000 1.347199 1.668925 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11980) = 15.926 Prob > F = 0.000 . xteventplot, smpath(scatter) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 15.5073131 Order 0 Wald value 1464.06384 Order 1 Wald value 269.975294 Order 2 Wald value 193.714313 Order 3 Wald value 137.593424 Order 4 Wald value 128.489737 Order 5 Wald value 83.1331862 Order 6 Wald value 58.1316458 Order 7 Wald value 48.5284897 Order 8 Wald value 8.0986e-11 (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 (switching technique to bfgs) Hessian could not be updated -- Hessian is unstable (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 (switching technique to bfgs) Hessian could not be updated -- Hessian is unstable The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 9. See mf_optimize##r_error to see what that means. Error code = 9. See mf_optimize##r_error to see what that means. . xteventplot, smpath(line) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 15.5073131 Order 0 Wald value 1464.06384 Order 1 Wald value 269.975294 Order 2 Wald value 193.714313 Order 3 Wald value 137.593424 Order 4 Wald value 128.489737 Order 5 Wald value 83.1331862 Order 6 Wald value 58.1316458 Order 7 Wald value 48.5284897 Order 8 Wald value 8.0986e-11 (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 (switching technique to bfgs) Hessian could not be updated -- Hessian is unstable (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 (switching technique to bfgs) Hessian could not be updated -- Hessian is unstable The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 9. See mf_optimize##r_error to see what that means. Error code = 9. See mf_optimize##r_error to see what that means. . /* maximum order allowed is 10 > xteventplot, smpath(line, maxorder(25)) > xteventplot, smpath(line, maxorder(30)) > */ . xteventplot, smpath(line, technique("nr 10 bfgs 10")) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 15.5073131 Order 0 Wald value 1464.06384 Order 1 Wald value 269.975294 Order 2 Wald value 193.714313 Order 3 Wald value 137.593424 Order 4 Wald value 128.489737 Order 5 Wald value 83.1331862 Order 6 Wald value 58.1316458 Order 7 Wald value 48.5284897 Order 8 Wald value 8.0986e-11 (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 Iteration 5: f(p) = 4.838e+08 (not concave) Iteration 6: f(p) = 4.838e+08 (not concave) Iteration 7: f(p) = 4.838e+08 (not concave) Iteration 8: f(p) = 4.837e+08 (not concave) Iteration 9: f(p) = 4.835e+08 (not concave) (switching technique to bfgs) Iteration 10: f(p) = 4.831e+08 Iteration 11: f(p) = 4.831e+08 (backed up) Iteration 12: f(p) = 4.831e+08 Iteration 13: f(p) = 4.831e+08 Iteration 14: f(p) = 4.831e+08 Iteration 15: f(p) = 4.831e+08 Iteration 16: f(p) = 4.831e+08 Iteration 17: f(p) = 4.831e+08 (backed up) Iteration 18: f(p) = 4.831e+08 (backed up) Iteration 19: f(p) = 4.831e+08 (backed up) (switching technique to nr) Iteration 20: f(p) = 4.831e+08 (not concave) Iteration 21: f(p) = 4.830e+08 (not concave) Iteration 22: f(p) = 4.830e+08 (not concave) Iteration 23: f(p) = 4.830e+08 (not concave) Iteration 24: f(p) = 4.830e+08 (not concave) Iteration 25: f(p) = 4.830e+08 Hessian is not positive semidefinite (setting technique to nr) Iteration 0: f(p) = 4.840e+08 (not concave) Iteration 1: f(p) = 4.838e+08 (not concave) Iteration 2: f(p) = 4.838e+08 (not concave) Iteration 3: f(p) = 4.838e+08 (not concave) Iteration 4: f(p) = 4.838e+08 Hessian is not positive semidefinite The optimization to calculate the smoothest path returned an error code. Smoothest path won't be displayed. Try changing the optimization options. For example, try -smpath(scatter, tech(dfp)-. Error code = 4. See mf_optimize##r_error to see what that means. Error code = 4. See mf_optimize##r_error to see what that means. . . . * Test more suptreps . . cap graph drop g1 . cap graph drop g2 . . xtevent y, panelvar(i) timevar(t) policyvar(z) window(3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(20, 11980) = 472.86 Prob > F = 0.0000 R-squared = 0.7371 Adj R-squared = 0.7148 Root MSE = 1.0644 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | -.5447307 .0778204 -7.00 0.000 -.6972713 -.39219 _k_eq_m3 | -.1505628 .0950092 -1.58 0.113 -.3367962 .0356706 _k_eq_m2 | -.0631956 .0944157 -0.67 0.503 -.2482657 .1218745 _k_eq_p0 | 1.461537 .0937663 15.59 0.000 1.27774 1.645334 _k_eq_p1 | 1.432239 .0952458 15.04 0.000 1.245542 1.618936 _k_eq_p2 | 1.520175 .0967991 15.70 0.000 1.330434 1.709917 _k_eq_p3 | 1.542299 .0992803 15.53 0.000 1.347693 1.736905 _k_eq_p4 | 1.653742 .081142 20.38 0.000 1.494691 1.812793 | t | 6 | .1528999 .0476243 3.21 0.001 .0595486 .2462512 7 | .3046591 .0476683 6.39 0.000 .2112215 .3980966 8 | .5658986 .0477605 11.85 0.000 .4722802 .659517 9 | .7226899 .0478856 15.09 0.000 .6288264 .8165535 10 | .9382351 .0480604 19.52 0.000 .8440288 1.032441 11 | 1.051662 .048284 21.78 0.000 .957018 1.146307 12 | 1.200805 .0485412 24.74 0.000 1.105657 1.295954 13 | 1.410551 .04881 28.90 0.000 1.314876 1.506227 14 | 1.544048 .0491468 31.42 0.000 1.447713 1.640384 15 | 1.776522 .0495137 35.88 0.000 1.679467 1.873577 16 | 1.966509 .0498436 39.45 0.000 1.868808 2.064211 17 | 2.164314 .0502499 43.07 0.000 2.065816 2.262812 | _cons | 1.508062 .0820664 18.38 0.000 1.347199 1.668925 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11980) = 15.926 Prob > F = 0.000 . xteventplot, suptreps(20) name(g1) . xteventplot, suptreps(1e6) name(g2) . . graph combine g1 g2, rows(1) . . graph drop g1 . graph drop g2 . . * Test savek . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) savek(a) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . des a_eq*, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_eq_m6 double %10.0g Event time <= - 6 a_eq_m5 double %10.0g Event-time = - 5 a_eq_m4 double %10.0g Event-time = - 4 a_eq_m3 double %10.0g Event-time = - 3 a_eq_m2 double %10.0g Event-time = - 2 a_eq_m1 double %10.0g Event-time = - 1 a_eq_p0 double %10.0g Event-time = + 0 a_eq_p1 double %10.0g Event-time = + 1 a_eq_p2 double %10.0g Event-time = + 2 a_eq_p3 double %10.0g Event-time = + 3 a_eq_p4 double %10.0g Event-time = + 4 a_eq_p5 double %10.0g Event-time = + 5 a_eq_p6 double %10.0g Event time >= + 6 . des a_evtime, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_evtime long %12.0g . drop a* . . * Test factor variables in varlist . cap gen pois=rpoisson(5) . xtevent y i.pois, panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(36, 7964) = 94.17 Prob > F = 0.0000 R-squared = 0.7328 Adj R-squared = 0.6980 Root MSE = 1.0395 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.7030642 .111623 -6.30 0.000 -.9218745 -.4842538 _k_eq_m5 | -.3715899 .1215449 -3.06 0.002 -.6098497 -.1333302 _k_eq_m4 | -.3488687 .1169577 -2.98 0.003 -.5781365 -.1196009 _k_eq_m3 | -.2192581 .112805 -1.94 0.052 -.4403855 .0018692 _k_eq_m2 | -.1530209 .110466 -1.39 0.166 -.3695633 .0635215 _k_eq_p0 | 1.396681 .1081447 12.91 0.000 1.184689 1.608673 _k_eq_p1 | 1.338546 .1093317 12.24 0.000 1.124228 1.552865 _k_eq_p2 | 1.505958 .1124112 13.40 0.000 1.285603 1.726314 _k_eq_p3 | 1.515725 .1172687 12.93 0.000 1.285848 1.745602 _k_eq_p4 | 1.537146 .1225433 12.54 0.000 1.296929 1.777363 _k_eq_p5 | 1.811037 .1305369 13.87 0.000 1.55515 2.066923 _k_eq_p6 | 1.728651 .1210486 14.28 0.000 1.491364 1.965938 | pois | 1 | .1143053 .1624991 0.70 0.482 -.2042355 .4328462 2 | -.0449313 .1542998 -0.29 0.771 -.3473993 .2575368 3 | .0005668 .1522465 0.00 0.997 -.2978763 .2990098 4 | -.0088059 .1517141 -0.06 0.954 -.3062053 .2885935 5 | .0360387 .1518269 0.24 0.812 -.2615817 .3336591 6 | -.0030267 .1520742 -0.02 0.984 -.3011321 .2950786 7 | .069831 .1532148 0.46 0.649 -.2305102 .3701721 8 | -.0220897 .1552983 -0.14 0.887 -.326515 .2823356 9 | -.0226019 .1613443 -0.14 0.889 -.338879 .2936753 10 | -.0665843 .1687719 -0.39 0.693 -.3974215 .2642528 11 | .1718984 .1915276 0.90 0.369 -.2035458 .5473426 12 | -.2274808 .2590252 -0.88 0.380 -.7352381 .2802765 13 | -.162879 .3648882 -0.45 0.655 -.8781553 .5523974 14 | -.6582205 .5720617 -1.15 0.250 -1.779611 .4631704 15 | -.029588 .6549569 -0.05 0.964 -1.313475 1.254299 16 | 2.942315 1.116789 2.63 0.008 .7531163 5.131513 | t | 8 | .2568538 .0466042 5.51 0.000 .1654974 .3482101 9 | .4113834 .0467907 8.79 0.000 .3196613 .5031055 10 | .6240305 .0471211 13.24 0.000 .5316607 .7164002 11 | .733972 .0475799 15.43 0.000 .6407029 .827241 12 | .8788196 .0482481 18.21 0.000 .7842407 .9733986 13 | 1.081147 .0490012 22.06 0.000 .9850923 1.177203 14 | 1.217583 .0498742 24.41 0.000 1.119816 1.315349 15 | 1.442758 .0508458 28.38 0.000 1.343087 1.542429 | _cons | 1.934694 .1817201 10.65 0.000 1.578475 2.290913 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7964) = 11.919 Prob > F = 0.000 . cap drop pois . . * Test asymmetric window . xtevent y , panelvar(i) timevar(t) policyvar(z) window(-4 2) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(20, 11980) = 476.98 Prob > F = 0.0000 R-squared = 0.7303 Adj R-squared = 0.7074 Root MSE = 1.0599 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | -.6848987 .0795433 -8.61 0.000 -.8408165 -.528981 _k_eq_m4 | -.3113002 .0954834 -3.26 0.001 -.4984631 -.1241374 _k_eq_m3 | -.2220896 .0947314 -2.34 0.019 -.4077786 -.0364007 _k_eq_m2 | -.1095029 .0933718 -1.17 0.241 -.2925268 .0735209 _k_eq_p0 | 1.436959 .0946671 15.18 0.000 1.251396 1.622521 _k_eq_p1 | 1.40164 .0960797 14.59 0.000 1.213309 1.589972 _k_eq_p2 | 1.513379 .0984214 15.38 0.000 1.320457 1.706301 _k_eq_p3 | 1.599291 .0794432 20.13 0.000 1.443569 1.755012 | t | 5 | .2012946 .0474239 4.24 0.000 .108336 .2942531 6 | .3504001 .0474678 7.38 0.000 .2573556 .4434446 7 | .4984896 .0475596 10.48 0.000 .405265 .5917141 8 | .7586405 .0476841 15.91 0.000 .6651719 .8521092 9 | .9115261 .0478582 19.05 0.000 .8177161 1.005336 10 | 1.125765 .0480809 23.41 0.000 1.031518 1.220011 11 | 1.238251 .048337 25.62 0.000 1.143502 1.332999 12 | 1.387743 .0486046 28.55 0.000 1.29247 1.483016 13 | 1.593731 .04894 32.56 0.000 1.497801 1.689662 14 | 1.727023 .0493054 35.03 0.000 1.630377 1.82367 15 | 1.961141 .049634 39.51 0.000 1.86385 2.058431 16 | 2.147068 .0500385 42.91 0.000 2.048984 2.245152 | _cons | 1.430418 .0838426 17.06 0.000 1.266073 1.594763 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11980) = 15.713 Prob > F = 0.000 . . * Test normalizations . . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(-1) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(-2) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.5423631 .1068142 -5.08 0.000 -.7517468 -.3329794 _k_eq_m5 | -.2165538 .1188674 -1.82 0.069 -.4495649 .0164574 _k_eq_m4 | -.1924586 .115162 -1.67 0.095 -.4182061 .033289 _k_eq_m3 | -.0411911 .1115578 -0.37 0.712 -.2598736 .1774915 _k_eq_m1 | .1544305 .1104301 1.40 0.162 -.0620413 .3709023 _k_eq_p0 | 1.554861 .1114536 13.95 0.000 1.336383 1.77334 _k_eq_p1 | 1.500937 .1134032 13.24 0.000 1.278637 1.723237 _k_eq_p2 | 1.653871 .1172344 14.11 0.000 1.424061 1.883681 _k_eq_p3 | 1.671551 .1225596 13.64 0.000 1.431302 1.9118 _k_eq_p4 | 1.693565 .1282016 13.21 0.000 1.442256 1.944874 _k_eq_p5 | 1.960343 .1364737 14.36 0.000 1.692819 2.227867 _k_eq_p6 | 1.882618 .1282397 14.68 0.000 1.631235 2.134001 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.782291 .1027456 17.35 0.000 1.580883 1.983699 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(-6) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | .3258094 .097693 3.34 0.001 .1343056 .5173131 _k_eq_m4 | .3499046 .1008706 3.47 0.001 .1521718 .5476373 _k_eq_m3 | .5011721 .1023805 4.90 0.000 .3004795 .7018647 _k_eq_m2 | .5423631 .1068142 5.08 0.000 .3329794 .7517468 _k_eq_m1 | .6967936 .1115468 6.25 0.000 .4781328 .9154545 _k_eq_p0 | 2.097224 .1155157 18.16 0.000 1.870783 2.323665 _k_eq_p1 | 2.0433 .1201001 17.01 0.000 1.807873 2.278728 _k_eq_p2 | 2.196234 .1260542 17.42 0.000 1.949135 2.443334 _k_eq_p3 | 2.213914 .1328517 16.66 0.000 1.95349 2.474338 _k_eq_p4 | 2.235928 .139252 16.06 0.000 1.962958 2.508898 _k_eq_p5 | 2.502706 .1478212 16.93 0.000 2.212938 2.792474 _k_eq_p6 | 2.424981 .1418755 17.09 0.000 2.146868 2.703094 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.239928 .0357328 34.70 0.000 1.169882 1.309974 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . * xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(5) norm(-7) plot . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(1) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -2.0433 .1201001 -17.01 0.000 -2.278728 -1.807873 _k_eq_m5 | -1.717491 .1272927 -13.49 0.000 -1.967018 -1.467964 _k_eq_m4 | -1.693396 .1219602 -13.88 0.000 -1.93247 -1.454322 _k_eq_m3 | -1.542128 .1166941 -13.22 0.000 -1.770879 -1.313377 _k_eq_m2 | -1.500937 .1134032 -13.24 0.000 -1.723237 -1.278637 _k_eq_m1 | -1.346507 .109264 -12.32 0.000 -1.560693 -1.13232 _k_eq_p0 | .0539243 .1072494 0.50 0.615 -.1563125 .264161 _k_eq_p2 | .1529342 .1077744 1.42 0.156 -.0583317 .3642001 _k_eq_p3 | .170614 .1114313 1.53 0.126 -.0478204 .3890485 _k_eq_p4 | .1926279 .1159339 1.66 0.097 -.0346328 .4198886 _k_eq_p5 | .4594058 .12323 3.73 0.000 .2178428 .7009687 _k_eq_p6 | .3816809 .1103236 3.46 0.001 .1654177 .597944 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 3.283228 .1142248 28.74 0.000 3.059318 3.507138 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -2.502706 .1478212 -16.93 0.000 -2.792474 -2.212938 _k_eq_m5 | -2.176897 .1522259 -14.30 0.000 -2.475299 -1.878494 _k_eq_m4 | -2.152801 .1470996 -14.63 0.000 -2.441155 -1.864448 _k_eq_m3 | -2.001534 .1410198 -14.19 0.000 -2.277969 -1.725098 _k_eq_m2 | -1.960343 .1364737 -14.36 0.000 -2.227867 -1.692819 _k_eq_m1 | -1.805912 .1304444 -13.84 0.000 -2.061617 -1.550207 _k_eq_p0 | -.4054815 .126698 -3.20 0.001 -.6538427 -.1571202 _k_eq_p1 | -.4594058 .12323 -3.73 0.000 -.7009687 -.2178428 _k_eq_p2 | -.3064715 .1216902 -2.52 0.012 -.5450161 -.0679269 _k_eq_p3 | -.2887917 .1218759 -2.37 0.018 -.5277004 -.049883 _k_eq_p4 | -.2667779 .1235323 -2.16 0.031 -.5089335 -.0246222 _k_eq_p6 | -.0777249 .1096224 -0.71 0.478 -.2926135 .1371638 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 3.742634 .142513 26.26 0.000 3.463271 4.021997 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . . graph drop _all . . * Test exclusion of unbalanced units with ambiguous eventtime . gen z2 = z . replace z2 = . if i==1 & t==7 (1 real change made, 1 to missing) . xtevent y , policyvar(z2) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Unit 1 not used because of ambiguous event-time due to missing values in policyvar. Linear regression, absorbing indicators Number of obs = 8,991 Absorbed variable: i No. of categories = 999 F(20, 7972) = 168.20 Prob > F = 0.0000 R-squared = 0.7321 Adj R-squared = 0.6979 Root MSE = 1.0398 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6970765 .1115369 -6.25 0.000 -.915718 -.4784351 _k_eq_m5 | -.3711513 .1213932 -3.06 0.002 -.6091137 -.1331889 _k_eq_m4 | -.347215 .116908 -2.97 0.003 -.5763853 -.1180447 _k_eq_m3 | -.1957088 .1125749 -1.74 0.082 -.416385 .0249673 _k_eq_m2 | -.154458 .1104181 -1.40 0.162 -.3709065 .0619904 _k_eq_p0 | 1.405862 .1082177 12.99 0.000 1.193727 1.617997 _k_eq_p1 | 1.335358 .10936 12.21 0.000 1.120984 1.549732 _k_eq_p2 | 1.507013 .1125187 13.39 0.000 1.286447 1.727579 _k_eq_p3 | 1.514108 .1173321 12.90 0.000 1.284106 1.744109 _k_eq_p4 | 1.536464 .1226399 12.53 0.000 1.296058 1.776871 _k_eq_p5 | 1.812281 .1306871 13.87 0.000 1.5561 2.068462 _k_eq_p6 | 1.731422 .121197 14.29 0.000 1.493844 1.968999 | t | 8 | .2557977 .046607 5.49 0.000 .1644357 .3471597 9 | .4123442 .0467999 8.81 0.000 .3206042 .5040841 10 | .6228568 .0471342 13.21 0.000 .5304614 .7152523 11 | .7340592 .0475978 15.42 0.000 .6407551 .8273634 12 | .8801966 .0482386 18.25 0.000 .7856364 .9747568 13 | 1.082393 .0490061 22.09 0.000 .9863284 1.178458 14 | 1.215459 .0498683 24.37 0.000 1.117704 1.313214 15 | 1.442246 .0508506 28.36 0.000 1.342565 1.541926 | _cons | 1.938516 .1061656 18.26 0.000 1.730403 2.146628 ------------------------------------------------------------------------------ F test of absorbed indicators: F(998, 7972) = 11.913 Prob > F = 0.000 . drop z2 . . * Overlay static plot . xtevent y , policyvar(z) timevar(t) window(5) Using options panelvar and timevar from xtset No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.6967936 .1115468 -6.25 0.000 -.9154545 -.4781328 _k_eq_m5 | -.3709843 .1214044 -3.06 0.002 -.6089686 -.1329999 _k_eq_m4 | -.3468891 .1169192 -2.97 0.003 -.5760812 -.117697 _k_eq_m3 | -.1956216 .1125863 -1.74 0.082 -.41632 .0250769 _k_eq_m2 | -.1544305 .1104301 -1.40 0.162 -.3709023 .0620413 _k_eq_p0 | 1.400431 .1081118 12.95 0.000 1.188503 1.612358 _k_eq_p1 | 1.346507 .109264 12.32 0.000 1.13232 1.560693 _k_eq_p2 | 1.499441 .1124112 13.34 0.000 1.279085 1.719796 _k_eq_p3 | 1.517121 .1171971 12.95 0.000 1.287384 1.746858 _k_eq_p4 | 1.539134 .1224693 12.57 0.000 1.299063 1.779206 _k_eq_p5 | 1.805912 .1304444 13.84 0.000 1.550207 2.061617 _k_eq_p6 | 1.728187 .1209624 14.29 0.000 1.491069 1.965305 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xteventplot, overlay(static) Estimating static model... Using options panelvar and timevar from xtset option static specified. Estimating static model Plotting options ignored No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 20,000 Absorbed variable: i No. of categories = 1,000 F(20, 18980) = 1542.36 Prob > F = 0.0000 R-squared = 0.7683 Adj R-squared = 0.7559 Root MSE = 1.0838 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- z | 2.013357 .0342545 58.78 0.000 1.946215 2.080499 | t | 2 | .1343675 .0484687 2.77 0.006 .0393645 .2293705 3 | .3224824 .0484688 6.65 0.000 .2274792 .4174857 4 | .5178552 .0484705 10.68 0.000 .4228488 .6128617 5 | .7249105 .0484769 14.95 0.000 .6298914 .8199295 6 | .8782946 .0484943 18.11 0.000 .7832414 .9733478 7 | 1.033401 .0485183 21.30 0.000 .9383006 1.128501 8 | 1.293922 .0485711 26.64 0.000 1.198718 1.389126 9 | 1.453883 .0486176 29.90 0.000 1.358588 1.549178 10 | 1.674 .0486824 34.39 0.000 1.578578 1.769422 11 | 1.789875 .0487624 36.71 0.000 1.694296 1.885454 12 | 1.943324 .048838 39.79 0.000 1.847597 2.039051 13 | 2.152779 .048941 43.99 0.000 2.05685 2.248707 14 | 2.288826 .0490458 46.67 0.000 2.192692 2.38496 15 | 2.525642 .0491383 51.40 0.000 2.429327 2.621958 16 | 2.71857 .0492194 55.23 0.000 2.622095 2.815044 17 | 2.9181 .0493433 59.14 0.000 2.821383 3.014817 18 | 3.074812 .0494557 62.17 0.000 2.977875 3.17175 19 | 3.276364 .0495249 66.16 0.000 3.179291 3.373437 20 | 3.448741 .0496478 69.46 0.000 3.351427 3.546055 | _cons | .2687477 .0342726 7.84 0.000 .2015704 .335925 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 18980) = 22.743 Prob > F = 0.000 . . *------------------------ 2.3: Replicate 2c ---------------------------------- . . * Replicate 2c . xtevent y x , panelvar(i) timevar(t) policyvar(z) window(5) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 174.69 Prob > F = 0.0000 R-squared = 0.7390 Adj R-squared = 0.7056 Root MSE = 1.0263 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.4560022 .1113138 -4.10 0.000 -.6742063 -.2377981 _k_eq_m5 | -.2003262 .1203847 -1.66 0.096 -.4363117 .0356593 _k_eq_m4 | -.2186228 .1157239 -1.89 0.059 -.4454719 .0082263 _k_eq_m3 | -.0613789 .1114933 -0.55 0.582 -.2799349 .1571772 _k_eq_m2 | -.0771815 .1091146 -0.71 0.479 -.2910747 .1367116 _k_eq_p0 | 1.300045 .1069193 12.16 0.000 1.090455 1.509635 _k_eq_p1 | 1.224207 .1081598 11.32 0.000 1.012186 1.436229 _k_eq_p2 | 1.356387 .1113725 12.18 0.000 1.138068 1.574707 _k_eq_p3 | 1.356192 .1161878 11.67 0.000 1.128433 1.58395 _k_eq_p4 | 1.377629 .1213722 11.35 0.000 1.139707 1.61555 _k_eq_p5 | 1.637558 .1292532 12.67 0.000 1.384188 1.890928 _k_eq_p6 | 1.538129 .1200869 12.81 0.000 1.302727 1.773531 x | .0723388 .0049476 14.62 0.000 .0626402 .0820373 | t | 8 | .2653197 .0459807 5.77 0.000 .1751855 .355454 9 | .4238567 .0461788 9.18 0.000 .3333342 .5143791 10 | .6520017 .0465406 14.01 0.000 .56077 .7432333 11 | .7692286 .0470181 16.36 0.000 .6770609 .8613964 12 | .9255591 .0476957 19.41 0.000 .8320631 1.019055 13 | 1.127495 .0484546 23.27 0.000 1.032511 1.222478 14 | 1.274492 .0493698 25.82 0.000 1.177714 1.37127 15 | 1.504786 .0503466 29.89 0.000 1.406093 1.603478 | _cons | 1.736018 .1056334 16.43 0.000 1.528949 1.943087 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 10.486 Prob > F = 0.000 . . * areg y x _k_eq* i.t , absorb(i) cluster(i) . . *------------------------ 2.4: Replicate 2d and test basic funcionality ---------------------------------- . . * Replicate 2d . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . . * Test alternative ways of specifying iv . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) proxyiv(1) plot Proxy for the confound specified. Implementing FHS estimator The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xteventplot, smpath(scatter) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 19.6751376 Order 0 Wald value 93.4338443 Order 1 Wald value 93.4338443 Order 2 Wald value 83.1263635 Order 3 Wald value 61.472432 Order 4 Wald value 61.4721624 Order 5 Wald value 59.4494704 Order 6 Wald value 57.4880328 Order 7 Wald value 42.447924 Order 8 Wald value 42.4280227 Order 9 Wald value 33.4822543 Order 10 Wald value 35.9566899 Could not find a polynomial with order<=maxorder through the Wald confidence region. Smoothest path won't be displayed. . /* > * This should not work now, for leads write 1 > cap gen f1z=f1.z > cap noi xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) proxyiv(f1z) > cap drop f1z > */ . . *Generate an instrument for the proxy. This instrument is collinear with the event-time dummies. . gen lead1=f1.d.z (1,000 missing values generated) . *expect an error message: instrument is collinear . *xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) proxyiv(lead1) . drop lead1 . . * Other leads . xtevent y , panelvar(i) timevar(t) policyvar(z) window(4) proxy(x) proxyiv(2) plot Proxy for the confound specified. Implementing FHS estimator The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 11,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.3931 min = 11 Between = 0.4362 avg = 11.0 Overall = 0.4113 max = 11 Wald chi2(20) = 64046.60 corr(u_i, Xb) = 0.1277 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .0932543 .0861759 1.08 0.279 -.0756474 .262156 _k_eq_m5 | -.3364242 .2249145 -1.50 0.135 -.7772486 .1044002 _k_eq_m4 | -.0677477 .1300922 -0.52 0.603 -.3227237 .1872283 _k_eq_m3 | -.046603 .13607 -0.34 0.732 -.3132954 .2200893 _k_eq_p0 | 1.335606 .1800512 7.42 0.000 .9827122 1.6885 _k_eq_p1 | 1.245856 .2077738 6.00 0.000 .838627 1.653085 _k_eq_p2 | 1.370561 .2177056 6.30 0.000 .9438659 1.797256 _k_eq_p3 | 1.328125 .2370735 5.60 0.000 .8634691 1.79278 _k_eq_p4 | 1.353031 .2584002 5.24 0.000 .8465763 1.859486 _k_eq_p5 | 1.498469 .2560854 5.85 0.000 .9965506 2.000387 | t | 7 | .1594086 .0469051 3.40 0.001 .0674763 .2513408 8 | .4279196 .0485742 8.81 0.000 .332716 .5231232 9 | .5885506 .0508332 11.58 0.000 .4889193 .6881819 10 | .8217971 .0602579 13.64 0.000 .7036937 .9399005 11 | .9415829 .0650537 14.47 0.000 .81408 1.069086 12 | 1.10317 .0740017 14.91 0.000 .9581293 1.248211 13 | 1.305502 .0733785 17.79 0.000 1.161683 1.449321 14 | 1.455028 .0859478 16.93 0.000 1.286574 1.623483 15 | 1.68863 .0873171 19.34 0.000 1.517492 1.859768 16 | 1.897273 .1066213 17.79 0.000 1.688299 2.106247 | _cons | 1.474445 .1937605 7.61 0.000 1.094681 1.854209 -------------+---------------------------------------------------------------- sigma_u | 1.1254759 sigma_e | 1.0340546 rho | .54225811 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,9980) = 11.82 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t _fd2z . xteventplot, smpath(scatter) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 16.9189776 Order 0 Wald value 121.723003 Order 1 Wald value 121.723003 Order 2 Wald value 108.241241 Order 3 Wald value 78.3429876 Order 4 Wald value 74.8193942 Order 5 Wald value 62.9956812 Order 6 Wald value 61.998723 Order 7 Wald value 48.467384 Order 8 Wald value 37.3701674 Order 9 Wald value 35.7685454 Order 10 Wald value 36.4441307 Could not find a polynomial with order<=maxorder through the Wald confidence region. Smoothest path won't be displayed. . xtevent y , panelvar(i) timevar(t) policyvar(z) window(4) proxy(x) proxyiv(3) plot Proxy for the confound specified. Implementing FHS estimator The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -3 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 11,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.3882 min = 11 Between = 0.4504 avg = 11.0 Overall = 0.4171 max = 11 Wald chi2(20) = 63535.91 corr(u_i, Xb) = 0.1239 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1194146 .0571801 2.09 0.037 .0073436 .2314855 _k_eq_m5 | -.2560575 .141472 -1.81 0.070 -.5333375 .0212224 _k_eq_m4 | -.0239056 .100577 -0.24 0.812 -.2210328 .1732216 _k_eq_m2 | .0298608 .0875364 0.34 0.733 -.1417074 .2014291 _k_eq_p0 | 1.302172 .1479421 8.80 0.000 1.012211 1.592133 _k_eq_p1 | 1.203078 .1649698 7.29 0.000 .8797433 1.526413 _k_eq_p2 | 1.324693 .1714415 7.73 0.000 .9886741 1.660712 _k_eq_p3 | 1.276282 .1841839 6.93 0.000 .9152885 1.637276 _k_eq_p4 | 1.294777 .1985173 6.52 0.000 .90569 1.683864 _k_eq_p5 | 1.438811 .1920755 7.49 0.000 1.06235 1.815272 | t | 7 | .1620442 .0467658 3.47 0.001 .0703849 .2537034 8 | .4324721 .0475653 9.09 0.000 .3392457 .5256984 9 | .5949812 .0485735 12.25 0.000 .4997788 .6901836 10 | .8336569 .0532497 15.66 0.000 .7292893 .9380244 11 | .9554519 .0556378 17.17 0.000 .8464039 1.0645 12 | 1.120774 .0602412 18.60 0.000 1.002703 1.238844 13 | 1.322801 .0600335 22.03 0.000 1.205137 1.440464 14 | 1.477028 .067276 21.95 0.000 1.345169 1.608886 15 | 1.710918 .0679397 25.18 0.000 1.577759 1.844078 16 | 1.926433 .078769 24.46 0.000 1.772049 2.080818 | _cons | 1.404255 .1242275 11.30 0.000 1.160774 1.647737 -------------+---------------------------------------------------------------- sigma_u | 1.1098289 sigma_e | 1.038202 rho | .53330832 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,9980) = 11.72 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m5 _k_eq_m4 _k_eq_m2 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t _fd3z . xteventplot, smpath(scatter) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 16.9189776 Order 0 Wald value 120.75243 Order 1 Wald value 120.75243 Order 2 Wald value 108.683546 Order 3 Wald value 80.6549725 Order 4 Wald value 75.90084 Order 5 Wald value 62.821969 Order 6 Wald value 62.8217534 Order 7 Wald value 51.7739477 Order 8 Wald value 42.4734094 Order 9 Wald value 38.8996058 Order 10 Wald value 40.4261902 Could not find a polynomial with order<=maxorder through the Wald confidence region. Smoothest path won't be displayed. . . * Test additional instruments . . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) proxyiv(1 2) plot Proxy for the confound specified. Implementing FHS estimator The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z _fd2z . xteventplot, smpath(scatter, technique("nr 10 bfgs 10")) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 19.6751376 Order 0 Wald value 93.4338443 Order 1 Wald value 93.4338443 Order 2 Wald value 83.1263635 Order 3 Wald value 61.472432 Order 4 Wald value 61.4721624 Order 5 Wald value 59.4494704 Order 6 Wald value 57.4880328 Order 7 Wald value 42.447924 Order 8 Wald value 42.4280227 Order 9 Wald value 33.4822543 Order 10 Wald value 35.9566903 Could not find a polynomial with order<=maxorder through the Wald confidence region. Smoothest path won't be displayed. . xtevent y , panelvar(i) timevar(t) policyvar(z) window(4) proxy(x) proxyiv(3 4) plot Proxy for the confound specified. Implementing FHS estimator The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -3 was selected to be normalized to zero. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -4 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 11,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.3865 min = 11 Between = 0.4531 avg = 11.0 Overall = 0.4178 max = 11 Wald chi2(19) = 63360.21 corr(u_i, Xb) = 0.1224 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1254907 .0512184 2.45 0.014 .0251045 .2258768 _k_eq_m5 | -.2358357 .1131876 -2.08 0.037 -.4576794 -.0139921 _k_eq_m2 | .0375657 .0814257 0.46 0.645 -.1220259 .1971572 _k_eq_p0 | 1.294979 .1450137 8.93 0.000 1.010757 1.5792 _k_eq_p1 | 1.193643 .1603439 7.44 0.000 .8793742 1.507911 _k_eq_p2 | 1.314465 .1661829 7.91 0.000 .9887526 1.640178 _k_eq_p3 | 1.264589 .1777372 7.11 0.000 .91623 1.612947 _k_eq_p4 | 1.281502 .1907628 6.72 0.000 .9076138 1.65539 _k_eq_p5 | 1.42507 .183423 7.77 0.000 1.065568 1.784573 | t | 7 | .1627109 .0467462 3.48 0.001 .07109 .2543319 8 | .4336661 .0473648 9.16 0.000 .3408328 .5264994 9 | .5965449 .0481926 12.38 0.000 .5020891 .6910007 10 | .8365841 .0518777 16.13 0.000 .7349057 .9382625 11 | .958899 .0537888 17.83 0.000 .8534748 1.064323 12 | 1.125109 .0574939 19.57 0.000 1.012423 1.237794 13 | 1.326981 .0574788 23.09 0.000 1.214325 1.439638 14 | 1.482433 .0634043 23.38 0.000 1.358162 1.606703 15 | 1.716465 .0638948 26.86 0.000 1.591233 1.841696 16 | 1.933434 .0731556 26.43 0.000 1.790052 2.076817 | _cons | 1.386463 .0992785 13.97 0.000 1.191881 1.581045 -------------+---------------------------------------------------------------- sigma_u | 1.1066263 sigma_e | 1.03964 rho | .53118024 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,9981) = 11.69 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m5 _k_eq_m2 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t _fd3z _fd4z . xteventplot, smpath(scatter, technique("nr 10 bfgs 10")) Note: Smoothest line drawn for system confidence level = 95% Wald Critical Value 15.5073131 Order 0 Wald value 120.362278 Order 1 Wald value 120.362278 Order 2 Wald value 120.362278 Order 3 Wald value 115.968694 Order 4 Wald value 112.540054 Order 5 Wald value 111.690995 Order 6 Wald value 73.14401 Order 7 Wald value 51.7301481 Order 8 Wald value 43.6471586 Order 9 Wald value 39.1677076 Order 10 Wald value 41.0125623 Could not find a polynomial with order<=maxorder through the Wald confidence region. Smoothest path won't be displayed. . . * Test both normalizations . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) norm(-3) proxy(x) proxyiv(1) plot Proxy for the confound specified. Implementing FHS estimator The coefficient at -3 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -1 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.3111 min = 9 Between = 0.4443 avg = 9.0 Overall = 0.3883 max = 9 Wald chi2(20) = 51302.84 corr(u_i, Xb) = 0.1277 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1054137 .0600395 1.76 0.079 -.0122616 .223089 _k_eq_m6 | -.3459068 .1625258 -2.13 0.033 -.6644516 -.0273621 _k_eq_m5 | -.1222973 .1317452 -0.93 0.353 -.3805132 .1359185 _k_eq_m4 | -.1599765 .1103863 -1.45 0.147 -.3763296 .0563766 _k_eq_m2 | -.0418615 .0951386 -0.44 0.660 -.2283297 .1446067 _k_eq_p0 | 1.254146 .1633538 7.68 0.000 .9339786 1.574314 _k_eq_p1 | 1.168289 .178346 6.55 0.000 .8187375 1.517841 _k_eq_p2 | 1.29098 .1939432 6.66 0.000 .9108583 1.671102 _k_eq_p3 | 1.282611 .2084662 6.15 0.000 .8740249 1.691197 _k_eq_p4 | 1.303785 .2110926 6.18 0.000 .8900506 1.717519 _k_eq_p5 | 1.560583 .2196169 7.11 0.000 1.130141 1.991024 _k_eq_p6 | 1.45123 .2290275 6.34 0.000 1.002345 1.900116 | t | 8 | .2681735 .0464067 5.78 0.000 .1772181 .3591289 9 | .4292792 .0471873 9.10 0.000 .3367938 .5217646 10 | .6644899 .0514217 12.92 0.000 .5637051 .7652746 11 | .7845251 .0539987 14.53 0.000 .6786896 .8903607 12 | .9460689 .0591706 15.99 0.000 .8300967 1.062041 13 | 1.147929 .0593978 19.33 0.000 1.031512 1.264347 14 | 1.301064 .0671957 19.36 0.000 1.169362 1.432765 15 | 1.532279 .0687524 22.29 0.000 1.397526 1.667031 | _cons | 1.644252 .1344661 12.23 0.000 1.380703 1.9078 -------------+---------------------------------------------------------------- sigma_u | 1.125778 sigma_e | 1.0291525 rho | .54474932 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.87 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m2 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . . * Test additional proxys . cap gen x2=rnormal() . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x x2) proxyiv(1 2) plot Proxy for the confound specified. Implementing FHS estimator The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2583 min = 9 Between = 0.4344 avg = 9.0 Overall = 0.3581 max = 9 Wald chi2(20) = 47648.93 corr(u_i, Xb) = 0.1251 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .0945811 .0696548 1.36 0.175 -.0419397 .2311019 x2 | .2901767 .6843029 0.42 0.672 -1.051032 1.631386 _k_eq_m6 | -.3578467 .1784523 -2.01 0.045 -.7076068 -.0080867 _k_eq_m5 | -.1385938 .1526352 -0.91 0.364 -.4377533 .1605658 _k_eq_m4 | -.1454826 .1083822 -1.34 0.179 -.3579078 .0669426 _k_eq_p0 | 1.254209 .1694861 7.40 0.000 .9220222 1.586395 _k_eq_p1 | 1.188298 .1870123 6.35 0.000 .8217606 1.554835 _k_eq_p2 | 1.292174 .2010644 6.43 0.000 .8980947 1.686253 _k_eq_p3 | 1.313959 .224494 5.85 0.000 .8739589 1.753959 _k_eq_p4 | 1.315693 .2192329 6.00 0.000 .8860043 1.745381 _k_eq_p5 | 1.593693 .2369945 6.72 0.000 1.129192 2.058194 _k_eq_p6 | 1.462468 .2380376 6.14 0.000 .995923 1.929013 | t | 8 | .2745224 .0503903 5.45 0.000 .1757592 .3732857 9 | .4411436 .0561674 7.85 0.000 .3310575 .5512297 10 | .6725025 .0558601 12.04 0.000 .5630187 .7819863 11 | .7765556 .0598225 12.98 0.000 .6593056 .8938056 12 | .9415575 .0628814 14.97 0.000 .8183122 1.064803 13 | 1.15579 .0633666 18.24 0.000 1.031594 1.279986 14 | 1.298783 .0703073 18.47 0.000 1.160983 1.436583 15 | 1.550362 .0807843 19.19 0.000 1.392027 1.708696 | _cons | 1.640325 .136975 11.98 0.000 1.371859 1.908791 -------------+---------------------------------------------------------------- sigma_u | 1.1362115 sigma_e | 1.0678834 rho | .53097078 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.16 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x x2 Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z _fd2z . * Must fail . * xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x x2) proxyiv(1) . cap drop x2 . . * Testing xtset options . . xtevent y , policyvar(z) window(5) proxy(x) plot Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xteventplot, levels(90 95 99) . xtevent y , policyvar(z) panelvar(i) window(5) proxy(x) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xtevent y , policyvar(z) timevar(t) window(5) proxy(x) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . . /* Must fail > xtevent y , policyvar(z) panelvar(z) window(5) proxy(x) > xtevent y , policyvar(z) timevar(z) window(5) proxy(x) > */ . . * Testing noci, nosupt, nozeroline, nonormlabel . xtevent y , policyvar(z) timevar(t) window(5) proxy(x) Using options panelvar and timevar from xtset Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xteventplot, nosupt option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated . xteventplot, noci option noci has been specified. Confidence intervals won't be displayed . xteventplot, nozeroline option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, nonormlabel option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . . * Test if/in . xtevent y if i<100, panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 891 Group variable: i Number of groups = 99 R-squared: Obs per group: Within = . min = 9 Between = 0.2013 avg = 9.0 Overall = 0.1137 max = 9 Wald chi2(20) = 58.74 corr(u_i, Xb) = -0.6954 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | 3.904531 23.42498 0.17 0.868 -42.00758 49.81664 _k_eq_m6 | 14.60994 93.76203 0.16 0.876 -169.1603 198.3801 _k_eq_m5 | 9.188704 62.33591 0.15 0.883 -112.9874 131.3648 _k_eq_m4 | 5.003296 32.56937 0.15 0.878 -58.8315 68.83809 _k_eq_m3 | 3.824933 24.5759 0.16 0.876 -44.34295 51.99282 _k_eq_p0 | -7.130993 50.09073 -0.14 0.887 -105.307 91.04504 _k_eq_p1 | -7.700155 56.20022 -0.14 0.891 -117.8506 102.4503 _k_eq_p2 | -7.000856 51.31744 -0.14 0.891 -107.5812 93.57948 _k_eq_p3 | -12.9492 88.05295 -0.15 0.883 -185.5298 159.6314 _k_eq_p4 | -8.673022 63.21987 -0.14 0.891 -132.5817 115.2357 _k_eq_p5 | -7.923337 57.57713 -0.14 0.891 -120.7724 104.9258 _k_eq_p6 | -13.04083 90.72174 -0.14 0.886 -190.8522 164.7705 | t | 8 | -.5570529 4.204376 -0.13 0.895 -8.797477 7.683372 9 | 1.215081 5.934503 0.20 0.838 -10.41633 12.84649 10 | 1.473615 5.306884 0.28 0.781 -8.927688 11.87492 11 | 1.921973 7.767436 0.25 0.805 -13.30192 17.14587 12 | 2.008215 9.007614 0.22 0.824 -15.64638 19.66282 13 | 2.750788 12.02988 0.23 0.819 -20.82735 26.32893 14 | 3.41202 14.57405 0.23 0.815 -25.1526 31.97664 15 | 4.820114 22.1999 0.22 0.828 -38.69089 48.33112 | _cons | -8.939542 66.86751 -0.13 0.894 -139.9975 122.1184 -------------+---------------------------------------------------------------- sigma_u | 8.0841167 sigma_e | 9.1221192 rho | .43989165 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(98,772) = 0.12 Prob > F = 1.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . xtevent y in 1/600 , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 3 selected. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -3 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 270 Group variable: i Number of groups = 30 R-squared: Obs per group: Within = . min = 9 Between = 0.2068 avg = 9.0 Overall = 0.0840 max = 9 Wald chi2(20) = 38.08 corr(u_i, Xb) = -0.7204 Prob > chi2 = 0.0126 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | -2.074832 5.831837 -0.36 0.722 -13.50502 9.355359 _k_eq_m6 | -6.832495 16.2482 -0.42 0.674 -38.67839 25.0134 _k_eq_m5 | -3.883706 7.650339 -0.51 0.612 -18.87809 11.11068 _k_eq_m4 | -2.734626 5.493707 -0.50 0.619 -13.50209 8.032843 _k_eq_m2 | .1443233 2.632332 0.05 0.956 -5.014952 5.303598 _k_eq_p0 | 6.34233 17.88232 0.35 0.723 -28.70636 41.39102 _k_eq_p1 | 5.929012 13.41204 0.44 0.658 -20.3581 32.21612 _k_eq_p2 | 4.086838 9.287697 0.44 0.660 -14.11671 22.29039 _k_eq_p3 | 5.211208 10.9801 0.47 0.635 -16.3094 26.73182 _k_eq_p4 | 2.237807 7.271923 0.31 0.758 -12.0149 16.49051 _k_eq_p5 | -1.908294 7.684516 -0.25 0.804 -16.96967 13.15308 _k_eq_p6 | -.2188566 3.674137 -0.06 0.953 -7.420033 6.98232 | t | 8 | -.5781277 1.860096 -0.31 0.756 -4.22385 3.067594 9 | -.204819 1.505974 -0.14 0.892 -3.156473 2.746835 10 | .4295255 1.45913 0.29 0.768 -2.430317 3.289368 11 | 1.013158 2.069427 0.49 0.624 -3.042844 5.06916 12 | -.9958794 4.340002 -0.23 0.819 -9.502127 7.510369 13 | .868834 1.470602 0.59 0.555 -2.013493 3.751161 14 | -.8129916 5.068735 -0.16 0.873 -10.74753 9.121546 15 | -.3456975 4.438444 -0.08 0.938 -9.044887 8.353492 | _cons | 5.238503 8.698547 0.60 0.547 -11.81034 22.28734 -------------+---------------------------------------------------------------- sigma_u | 5.9007507 sigma_e | 5.2473311 rho | .55841207 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(29,220) = 0.32 Prob > F = 0.9997 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m2 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd3z . xtevent y in 1/600 if i<30 , panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 3 selected. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -3 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 261 Group variable: i Number of groups = 29 R-squared: Obs per group: Within = . min = 9 Between = 0.0966 avg = 9.0 Overall = 0.0243 max = 9 Wald chi2(20) = 154.53 corr(u_i, Xb) = -0.6305 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | -.8596922 1.361934 -0.63 0.528 -3.529034 1.80965 _k_eq_m6 | -3.717503 3.894232 -0.95 0.340 -11.35006 3.915051 _k_eq_m5 | -3.034587 2.748779 -1.10 0.270 -8.422094 2.352921 _k_eq_m4 | -2.107002 2.087867 -1.01 0.313 -6.199146 1.985142 _k_eq_m2 | -1.069151 1.55633 -0.69 0.492 -4.119502 1.981199 _k_eq_p0 | 2.402322 4.108095 0.58 0.559 -5.649395 10.45404 _k_eq_p1 | 2.829266 3.046377 0.93 0.353 -3.141522 8.800055 _k_eq_p2 | 1.849055 2.180036 0.85 0.396 -2.423738 6.121847 _k_eq_p3 | 2.81236 2.661867 1.06 0.291 -2.404804 8.029523 _k_eq_p4 | .5229343 1.894417 0.28 0.783 -3.190056 4.235924 _k_eq_p5 | -.9970253 2.799874 -0.36 0.722 -6.484678 4.490628 _k_eq_p6 | -.3820892 1.754115 -0.22 0.828 -3.820092 3.055914 | t | 8 | -.2382977 .6826405 -0.35 0.727 -1.576249 1.099653 9 | .0576936 .6688667 0.09 0.931 -1.253261 1.368648 10 | .4155803 .7284304 0.57 0.568 -1.012117 1.843278 11 | .7196852 .7691893 0.94 0.349 -.7878981 2.227269 12 | -.029409 1.102559 -0.03 0.979 -2.190385 2.131566 13 | 1.018625 .7369307 1.38 0.167 -.425733 2.462982 14 | .0843227 1.393674 0.06 0.952 -2.647228 2.815873 15 | .642588 1.079589 0.60 0.552 -1.473368 2.758544 | _cons | 3.486757 2.103578 1.66 0.097 -.6361801 7.609694 -------------+---------------------------------------------------------------- sigma_u | 2.8508066 sigma_e | 2.4485654 rho | .57546876 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(28,212) = 1.40 Prob > F = 0.0973 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m2 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd3z . . * Test nofe, note . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) nofe proxy(x) Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. note: 1.t identifies no observations in the sample. note: 2.t identifies no observations in the sample. note: 3.t identifies no observations in the sample. note: 4.t identifies no observations in the sample. note: 5.t identifies no observations in the sample. note: 6.t identifies no observations in the sample. note: 15.t omitted because of collinearity. note: 16.t identifies no observations in the sample. note: 17.t identifies no observations in the sample. note: 18.t identifies no observations in the sample. note: 19.t identifies no observations in the sample. note: 20.t identifies no observations in the sample. Instrumental variables 2SLS regression Source | SS df MS Number of obs = 9,000 -------------+------------------------------ F( 20, 8979) = 246.36 Model | 12679.2548 20 633.962738 Prob > F = 0.0000 Residual | 19524.3564 8979 2.17444664 R-squared = 0.3937 -------------+------------------------------ Adj R-squared = 0.3924 Total | 32203.6112 8999 3.57857664 Root MSE = 1.4746 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1866905 .1539382 1.21 0.225 -.1150635 .4884445 _k_eq_m6 | -.4400942 .6054 -0.73 0.467 -1.626816 .7466279 _k_eq_m5 | -.0131096 .2651722 -0.05 0.961 -.5329077 .5066886 _k_eq_m4 | -.1266771 .1993939 -0.64 0.525 -.5175346 .2641804 _k_eq_m3 | .1100165 .2208765 0.50 0.618 -.3229518 .5429848 _k_eq_p0 | 1.075928 .3009703 3.57 0.000 .4859574 1.665898 _k_eq_p1 | .9444141 .3278846 2.88 0.004 .3016854 1.587143 _k_eq_p2 | 1.027645 .3469694 2.96 0.003 .3475055 1.707784 _k_eq_p3 | .9607365 .3593791 2.67 0.008 .2562715 1.665201 _k_eq_p4 | .9472728 .35444 2.67 0.008 .2524895 1.642056 _k_eq_p5 | 1.2183 .366638 3.32 0.001 .4996055 1.936994 _k_eq_p6 | 1.025804 .3653197 2.81 0.005 .3096943 1.741914 | t | 1 | 0 (empty) 2 | 0 (empty) 3 | 0 (empty) 4 | 0 (empty) 5 | 0 (empty) 6 | 0 (empty) 7 | -1.58012 .1467227 -10.77 0.000 -1.86773 -1.29251 8 | -1.309948 .1323895 -9.89 0.000 -1.569461 -1.050434 9 | -1.146683 .1211621 -9.46 0.000 -1.384188 -.9091773 10 | -.8969929 .0955315 -9.39 0.000 -1.084256 -.7097294 11 | -.7714088 .0866672 -8.90 0.000 -.9412962 -.6015214 12 | -.599894 .0732455 -8.19 0.000 -.7434719 -.4563161 13 | -.4000918 .0733866 -5.45 0.000 -.5439462 -.2562374 14 | -.2312987 .0661804 -3.49 0.000 -.3610274 -.10157 15 | 0 (omitted) 16 | 0 (empty) 17 | 0 (empty) 18 | 0 (empty) 19 | 0 (empty) 20 | 0 (empty) | _cons | 3.311779 .3668735 9.03 0.000 2.592624 4.030935 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t _fd1z . . * Note: Warning for the omitted time dummy comes from ivregress 2sls . . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) nofe note proxy(x) Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Instrumental variables 2SLS regression Source | SS df MS Number of obs = 9,000 -------------+------------------------------ F( 12, 8987) = 317.63 Model | 10790.8053 12 899.233776 Prob > F = 0.0000 Residual | 21412.8059 8987 2.38264225 R-squared = 0.3351 -------------+------------------------------ Adj R-squared = 0.3342 Total | 32203.6112 8999 3.57857664 Root MSE = 1.5436 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1512555 .1584994 0.95 0.340 -.1594394 .4619504 _k_eq_m6 | -.5582477 .6252372 -0.89 0.372 -1.783855 .6673597 _k_eq_m5 | -.0762607 .2728355 -0.28 0.780 -.6110804 .458559 _k_eq_m4 | -.1920545 .2045654 -0.94 0.348 -.5930493 .2089404 _k_eq_m3 | .0718171 .2290006 0.31 0.754 -.3770763 .5207105 _k_eq_p0 | 1.168785 .3085102 3.79 0.000 .5640343 1.773535 _k_eq_p1 | 1.065366 .3340942 3.19 0.001 .4104652 1.720267 _k_eq_p2 | 1.190744 .3504899 3.40 0.001 .5037042 1.877785 _k_eq_p3 | 1.163913 .3597272 3.24 0.001 .4587658 1.86906 _k_eq_p4 | 1.235302 .3466122 3.56 0.000 .5558626 1.914741 _k_eq_p5 | 1.592815 .3528616 4.51 0.000 .9011253 2.284504 _k_eq_p6 | 1.608009 .3317805 4.85 0.000 .9576435 2.258374 _cons | 2.588622 .4398952 5.88 0.000 1.726327 3.450917 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 _fd1z . . * Test savek . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) savek(a) proxy(x) Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2966 min = 9 Between = 0.4626 avg = 9.0 Overall = 0.3932 max = 9 Wald chi2(20) = 50246.32 corr(u_i, Xb) = 0.1187 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1446144 .1034084 1.40 0.162 -.0580623 .3472911 _k_eq_m6 | -.2154211 .2994867 -0.72 0.472 -.8024042 .371562 _k_eq_m5 | -.0298171 .2143987 -0.14 0.889 -.4500309 .3903967 _k_eq_m4 | -.0904685 .1623713 -0.56 0.577 -.4087105 .2277735 _k_eq_m3 | .0727466 .1670603 0.44 0.663 -.2546855 .4001787 _k_eq_p0 | 1.199747 .2171944 5.52 0.000 .7740535 1.62544 _k_eq_p1 | 1.102015 .2456608 4.49 0.000 .6205285 1.583501 _k_eq_p2 | 1.213459 .2738336 4.43 0.000 .6767549 1.750163 _k_eq_p3 | 1.195403 .2989685 4.00 0.000 .6094355 1.781371 _k_eq_p4 | 1.216264 .3013153 4.04 0.000 .6256969 1.806831 _k_eq_p5 | 1.469351 .3130529 4.69 0.000 .8557785 2.082923 _k_eq_p6 | 1.348237 .3376183 3.99 0.000 .6865172 2.009957 | t | 8 | .2715558 .0475113 5.72 0.000 .1784354 .3646762 9 | .435706 .0497817 8.75 0.000 .3381356 .5332764 10 | .679291 .0608982 11.15 0.000 .5599327 .7986492 11 | .8026546 .0672672 11.93 0.000 .6708133 .9344958 12 | .9703772 .0795421 12.20 0.000 .8144776 1.126277 13 | 1.172149 .0795289 14.74 0.000 1.016275 1.328023 14 | 1.332557 .0956615 13.93 0.000 1.145064 1.52005 15 | 1.564863 .0988604 15.83 0.000 1.3711 1.758626 | _cons | 1.53549 .2450734 6.27 0.000 1.055155 2.015825 -------------+---------------------------------------------------------------- sigma_u | 1.104932 sigma_e | 1.0399161 rho | .53028479 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7980) = 9.66 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . des a_eq*, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_eq_m6 double %10.0g Event time <= - 6 a_eq_m5 double %10.0g Event-time = - 5 a_eq_m4 double %10.0g Event-time = - 4 a_eq_m3 double %10.0g Event-time = - 3 a_eq_m2 double %10.0g Event-time = - 2 a_eq_m1 double %10.0g Event-time = - 1 a_eq_p0 double %10.0g Event-time = + 0 a_eq_p1 double %10.0g Event-time = + 1 a_eq_p2 double %10.0g Event-time = + 2 a_eq_p3 double %10.0g Event-time = + 3 a_eq_p4 double %10.0g Event-time = + 4 a_eq_p5 double %10.0g Event-time = + 5 a_eq_p6 double %10.0g Event time >= + 6 . des a_evtime, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_evtime long %12.0g . drop a_* . . . * Test factor variables in varlist . cap gen pois=rpoisson(5) . xtevent y i.pois, panelvar(i) timevar(t) policyvar(z) window(5) proxy(x) Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 9,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.2969 min = 9 Between = 0.4632 avg = 9.0 Overall = 0.3939 max = 9 Wald chi2(34) = 50191.64 corr(u_i, Xb) = 0.1161 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .145898 .1027153 1.42 0.155 -.0554203 .3472163 | pois | 1 | .0804734 .192331 0.42 0.676 -.2964885 .4574353 2 | .0749749 .184363 0.41 0.684 -.28637 .4363197 3 | .0686646 .177053 0.39 0.698 -.278353 .4156822 4 | .112603 .1816942 0.62 0.535 -.2435111 .4687172 5 | .1440632 .1808237 0.80 0.426 -.2103449 .4984712 6 | .0965529 .1804783 0.53 0.593 -.2571781 .450284 7 | .0380689 .1896516 0.20 0.841 -.3336415 .4097793 8 | .1605401 .1810061 0.89 0.375 -.1942253 .5153055 9 | .1520396 .1865475 0.82 0.415 -.2135867 .5176659 10 | .1103158 .1915473 0.58 0.565 -.2651099 .4857416 11 | .1745223 .2471771 0.71 0.480 -.3099359 .6589804 12 | .0911867 .2554139 0.36 0.721 -.4094153 .5917887 13 | .2921411 .3503004 0.83 0.404 -.3944351 .9787172 14 | -.1109313 .5426233 -0.20 0.838 -1.174453 .9525908 | _k_eq_m6 | -.217044 .2993844 -0.72 0.468 -.8038266 .3697386 _k_eq_m5 | -.0307374 .2136435 -0.14 0.886 -.449471 .3879962 _k_eq_m4 | -.090525 .1629775 -0.56 0.579 -.409955 .2289051 _k_eq_m3 | .0759055 .1671861 0.45 0.650 -.2517732 .4035842 _k_eq_p0 | 1.200031 .2149424 5.58 0.000 .778752 1.621311 _k_eq_p1 | 1.103683 .2431254 4.54 0.000 .6271659 1.5802 _k_eq_p2 | 1.209044 .2725771 4.44 0.000 .6748031 1.743286 _k_eq_p3 | 1.195691 .295916 4.04 0.000 .6157064 1.775676 _k_eq_p4 | 1.218174 .2978817 4.09 0.000 .6343368 1.802012 _k_eq_p5 | 1.46743 .3117978 4.71 0.000 .8563173 2.078542 _k_eq_p6 | 1.344527 .3352724 4.01 0.000 .6874047 2.001649 | t | 8 | .2749931 .0475922 5.78 0.000 .1817141 .3682721 9 | .441716 .0499771 8.84 0.000 .3437626 .5396694 10 | .6812423 .0608138 11.20 0.000 .5620495 .8004351 11 | .8058312 .0677649 11.89 0.000 .6730145 .9386479 12 | .9742193 .0800565 12.17 0.000 .8173114 1.131127 13 | 1.174606 .0797111 14.74 0.000 1.018375 1.330836 14 | 1.338562 .0956965 13.99 0.000 1.151 1.526123 15 | 1.56591 .0981145 15.96 0.000 1.373609 1.758211 | _cons | 1.431565 .2547873 5.62 0.000 .9321915 1.930939 -------------+---------------------------------------------------------------- sigma_u | 1.1037944 sigma_e | 1.0406034 rho | .52944237 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,7966) = 9.62 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: 1.pois 2.pois 3.pois 4.pois 5.pois 6.pois 7.pois 8.pois 9.pois 10.pois 11.pois 12.pois 13.pois 14.pois _k_eq_m6 _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 _k_eq_p4 _k_eq_p5 _k_eq_p6 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t _fd1z . cap drop pois . . * Test asymmetric window . xtevent y , panelvar(i) timevar(t) policyvar(z) window(-4 2) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 13,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.4622 min = 13 Between = 0.3968 avg = 13.0 Overall = 0.4219 max = 13 Wald chi2(20) = 65240.77 corr(u_i, Xb) = 0.1036 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .0946588 .0793311 1.19 0.233 -.0608272 .2501448 _k_eq_m5 | -.3850017 .2129896 -1.81 0.071 -.8024536 .0324502 _k_eq_m4 | -.1420751 .1251308 -1.14 0.256 -.387327 .1031769 _k_eq_m3 | -.0518564 .1254125 -0.41 0.679 -.2976604 .1939476 _k_eq_p0 | 1.317675 .1667024 7.90 0.000 .9909446 1.644406 _k_eq_p1 | 1.24898 .1922156 6.50 0.000 .8722443 1.625715 _k_eq_p2 | 1.353375 .1988024 6.81 0.000 .9637292 1.74302 _k_eq_p3 | 1.395035 .2252055 6.19 0.000 .9536402 1.83643 | t | 5 | .2278566 .0514796 4.43 0.000 .1269584 .3287548 6 | .3735137 .0505528 7.39 0.000 .274432 .4725955 7 | .531388 .053849 9.87 0.000 .425846 .6369301 8 | .7986449 .057432 13.91 0.000 .6860803 .9112096 9 | .9584669 .0610096 15.71 0.000 .8388902 1.078044 10 | 1.192282 .0724912 16.45 0.000 1.050202 1.334362 11 | 1.312226 .0777359 16.88 0.000 1.159866 1.464585 12 | 1.474963 .0866563 17.02 0.000 1.305119 1.644806 13 | 1.679756 .0858821 19.56 0.000 1.51143 1.848081 14 | 1.830033 .0981719 18.64 0.000 1.63762 2.022447 15 | 2.065015 .0992823 20.80 0.000 1.870425 2.259605 16 | 2.275756 .1175787 19.36 0.000 2.045306 2.506206 | _cons | 1.14507 .2028527 5.64 0.000 .747486 1.542654 -------------+---------------------------------------------------------------- sigma_u | 1.109964 sigma_e | 1.0417382 rho | .53167598 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,11980) = 13.60 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m5 _k_eq_m4 _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 5.t 6.t 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t _fd1z . xtevent y , panelvar(i) timevar(t) policyvar(z) window(-2 2) proxy(x) plot Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. The corresponding coefficient of lead 1 and the normalized coefficient were the same. Lead 1 has been changed to > 2. The coefficient at -1 is normalized to zero. For estimation with proxy variables, an additional coefficient needs to be normalized to zero. The coefficient at -2 was selected to be normalized to zero. Fixed-effects (within) IV regression Number of obs = 15,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.5170 min = 15 Between = 0.4448 avg = 15.0 Overall = 0.4710 max = 15 Wald chi2(20) = 90489.01 corr(u_i, Xb) = 0.1196 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .1299779 .0857769 1.52 0.130 -.0381417 .2980976 _k_eq_m3 | -.1850155 .1911075 -0.97 0.333 -.5595792 .1895483 _k_eq_p0 | 1.258045 .1735165 7.25 0.000 .9179587 1.598131 _k_eq_p1 | 1.163849 .1991914 5.84 0.000 .7734413 1.554257 _k_eq_p2 | 1.253699 .2038229 6.15 0.000 .8542135 1.653185 _k_eq_p3 | 1.286978 .2372187 5.43 0.000 .8220379 1.751918 | t | 5 | .240736 .0523923 4.59 0.000 .138049 .3434231 6 | .3865681 .0511893 7.55 0.000 .286239 .4868972 7 | .551073 .0541324 10.18 0.000 .4449754 .6571706 8 | .8233304 .0576025 14.29 0.000 .7104315 .9362293 9 | .9881476 .0607877 16.26 0.000 .8690059 1.107289 10 | 1.232292 .0722682 17.05 0.000 1.090649 1.373935 11 | 1.356494 .0776937 17.46 0.000 1.204217 1.508771 12 | 1.524912 .0872478 17.48 0.000 1.35391 1.695915 13 | 1.731592 .0854446 20.27 0.000 1.564124 1.89906 14 | 1.891099 .0978369 19.33 0.000 1.699342 2.082856 15 | 2.126845 .0992941 21.42 0.000 1.932232 2.321458 16 | 2.34808 .1184492 19.82 0.000 2.115924 2.580236 17 | 2.535341 .109561 23.14 0.000 2.320605 2.750076 18 | 2.693943 .1113882 24.19 0.000 2.475626 2.91226 | _cons | .9661647 .1875359 5.15 0.000 .5986012 1.333728 -------------+---------------------------------------------------------------- sigma_u | 1.1000613 sigma_e | 1.0545585 rho | .52110934 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,13980) = 15.24 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: _k_eq_m3 _k_eq_p0 _k_eq_p1 _k_eq_p2 _k_eq_p3 5.t 6.t 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t 17.t 18.t _fd1z . . * Test overlay plots . graph drop _all . . xteventplot, y . xteventplot, proxy . xteventplot, overlay(iv) . xteventplot . xteventplot, overlay(static) Estimating static model... option static specified. Estimating static model Plotting options ignored Proxy for the confound specified. Implementing FHS estimator proxyiv=select. Selecting lead order of differenced policy variable to use as instrument. Lead 1 selected. Fixed-effects (within) IV regression Number of obs = 19,000 Group variable: i Number of groups = 1,000 R-squared: Obs per group: Within = 0.5951 min = 19 Between = 0.4026 avg = 19.0 Overall = 0.5149 max = 19 Wald chi2(20) = 101753.18 corr(u_i, Xb) = 0.0537 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ y | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- x | .2085442 .0231909 8.99 0.000 .1630909 .2539975 z | 1.122055 .1048852 10.70 0.000 .9164837 1.327626 | t | 2 | .1292698 .0485565 2.66 0.008 .0341008 .2244388 3 | .3388468 .0485873 6.97 0.000 .2436174 .4340762 4 | .5322297 .0485812 10.96 0.000 .4370123 .627447 5 | .793252 .049151 16.14 0.000 .6969178 .8895862 6 | .9357614 .0489964 19.10 0.000 .8397302 1.031793 7 | 1.105294 .0492548 22.44 0.000 1.008756 1.201831 8 | 1.38311 .0496554 27.85 0.000 1.285787 1.480433 9 | 1.551031 .0498863 31.09 0.000 1.453255 1.648806 10 | 1.810413 .0510692 35.45 0.000 1.710319 1.910507 11 | 1.940011 .0516197 37.58 0.000 1.838839 2.041184 12 | 2.118331 .0526479 40.24 0.000 2.015143 2.221519 13 | 2.322626 .05254 44.21 0.000 2.219649 2.425602 14 | 2.494229 .0541786 46.04 0.000 2.388041 2.600417 15 | 2.730971 .0542629 50.33 0.000 2.624618 2.837324 16 | 2.971561 .0567587 52.35 0.000 2.860316 3.082806 17 | 3.14942 .0557245 56.52 0.000 3.040202 3.258637 18 | 3.308664 .0559588 59.13 0.000 3.198987 3.418341 19 | 3.466856 .0539688 64.24 0.000 3.361079 3.572633 | _cons | .2549779 .0343664 7.42 0.000 .187621 .3223349 -------------+---------------------------------------------------------------- sigma_u | 1.0577904 sigma_e | 1.0856822 rho | .48698973 (fraction of variance due to u_i) ------------------------------------------------------------------------------ F test that all u_i=0: F(999,17980) = 17.84 Prob > F = 0.0000 ------------------------------------------------------------------------------ Endogenous: x Exogenous: z 2.t 3.t 4.t 5.t 6.t 7.t 8.t 9.t 10.t 11.t 12.t 13.t 14.t 15.t 16.t 17.t 18.t 19.t _fd1z . . . . . . *------------------------ 2.5: Replicate 2e and test basic funcionality ---------------------------------- . . * Replicate 2e . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) trend(-3, saveov) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.2058035 .2454172 -0.84 0.402 -.6868853 .2752783 _k_eq_m5 | .0218079 .1214276 0.18 0.857 -.216222 .2598378 _k_eq_m4 | -.052295 .1562626 -0.33 0.738 -.3586106 .2540206 _k_eq_m3 | .0007745 .1164445 0.01 0.995 -.2274871 .2290361 _k_eq_m2 | -.0562325 .0971349 -0.58 0.563 -.2466423 .1341774 _k_eq_p0 | 1.302233 .144724 9.00 0.000 1.018536 1.58593 _k_eq_p1 | 1.15011 .1929457 5.96 0.000 .7718865 1.528334 _k_eq_p2 | 1.204847 .2464706 4.89 0.000 .7216999 1.687993 _k_eq_p3 | 1.124328 .3024511 3.72 0.000 .5314452 1.717212 _k_eq_p4 | 1.048144 .3597702 2.91 0.004 .3429007 1.753388 _k_eq_p5 | 1.216724 .4190667 2.90 0.004 .3952439 2.038204 _k_eq_p6 | 1.040801 .4736776 2.20 0.028 .1122692 1.969333 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . . * Test overlay plot . xteventplot, overlay(trend) . . . /* Must fail > xtevent y eta, policyvar(z) panelvar(z) window(5) trend(-3 5) > xtevent y eta, policyvar(z) timevar(z) window(5) trend(-3 5) > */ . . * Testing noci, nosupt, nozeroline, nonormlabel . xteventplot, noci option noci has been specified. Confidence intervals won't be displayed . xteventplot, nosupt option nosupt has been specified. Sup-t confidence intervals won't be displayed or calculated . xteventplot, nozeroline option nozeroline has been specified. The reference line at 0 won't be displayed . xteventplot, nonormlabel option nonormlabel has been specified. The label for the value of the dependent variable at event time correspon > ding to the normalized coefficient won't be displayed . . * Must fail . * xtevent y eta if i<100, panelvar(i) timevar(t) policyvar(z) window(5) trend(-8 5) . . . * Test nofe, note . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) nofe trend(-3) plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(20, 8979) = 223.83 Model | 10714.0449 20 535.702247 Prob > F = 0.0000 Residual | 21489.5662 8,979 2.39331398 R-squared = 0.3327 -------------+---------------------------------- Adj R-squared = 0.3312 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.547 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.772216 .351057 -2.20 0.028 -1.460368 -.0840641 _k_eq_m5 | .0123947 .1672511 0.07 0.941 -.3154555 .340245 _k_eq_m4 | -.0995854 .2251797 -0.44 0.658 -.5409891 .3418183 _k_eq_m3 | .0016461 .168803 0.01 0.992 -.3292463 .3325385 _k_eq_m2 | -.0900653 .1425865 -0.63 0.528 -.3695674 .1894367 _k_eq_p0 | 1.214707 .2132375 5.70 0.000 .7967127 1.632701 _k_eq_p1 | 1.022035 .2815187 3.63 0.000 .4701944 1.573876 _k_eq_p2 | 1.032081 .3573722 2.89 0.004 .3315495 1.732612 _k_eq_p3 | .8821295 .4367447 2.02 0.043 .0260101 1.738249 _k_eq_p4 | .7622184 .5178715 1.47 0.141 -.2529279 1.777365 _k_eq_p5 | .9473825 .6007108 1.58 0.115 -.2301477 2.124913 _k_eq_p6 | .6734131 .6736773 1.00 0.318 -.6471482 1.993974 | t | 8 | .2515293 .0692194 3.63 0.000 .1158436 .3872151 9 | .3986636 .0692411 5.76 0.000 .2629352 .5343919 10 | .6083407 .0692928 8.78 0.000 .4725111 .7441703 11 | .7191093 .0693718 10.37 0.000 .5831247 .8550939 12 | .8605161 .0694641 12.39 0.000 .7243507 .9966816 13 | 1.060749 .0696039 15.24 0.000 .9243096 1.197189 14 | 1.197118 .0698006 17.15 0.000 1.060293 1.333943 15 | 1.423055 .0700362 20.32 0.000 1.285768 1.560342 | _cons | 2.412556 .1217971 19.81 0.000 2.173806 2.651306 ------------------------------------------------------------------------------ . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) nofe note trend(-3) plot No proxy or instruments provided. Implementing OLS estimator Source | SS df MS Number of obs = 9,000 -------------+---------------------------------- F(12, 8987) = 294.16 Model | 9081.69274 12 756.807728 Prob > F = 0.0000 Residual | 23121.9184 8,987 2.57281834 R-squared = 0.2820 -------------+---------------------------------- Adj R-squared = 0.2810 Total | 32203.6112 8,999 3.57857664 Root MSE = 1.604 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.7836749 .3638895 -2.15 0.031 -1.496981 -.0703686 _k_eq_m5 | -.0179179 .173371 -0.10 0.918 -.3577647 .3219289 _k_eq_m4 | -.1402394 .2333784 -0.60 0.548 -.5977144 .3172355 _k_eq_m3 | .0012165 .1749656 0.01 0.994 -.3417559 .344189 _k_eq_m2 | -.0661581 .14781 -0.45 0.654 -.3558993 .2235831 _k_eq_p0 | 1.268202 .2210241 5.74 0.000 .8349442 1.701459 _k_eq_p1 | 1.103842 .2918199 3.78 0.000 .5318081 1.675875 _k_eq_p2 | 1.157322 .3704291 3.12 0.002 .4311963 1.883447 _k_eq_p3 | 1.050273 .4527034 2.32 0.020 .1628713 1.937675 _k_eq_p4 | 1.017527 .5367595 1.90 0.058 -.0346439 2.069698 _k_eq_p5 | 1.289366 .6226063 2.07 0.038 .0689157 2.509816 _k_eq_p6 | 1.211323 .6980525 1.74 0.083 -.1570187 2.579665 _cons | 3.076781 .117611 26.16 0.000 2.846237 3.307326 ------------------------------------------------------------------------------ . . * Test savek . xtevent y, panelvar(i) timevar(t) policyvar(z) window(5) savek(a) trend(-3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.2058035 .2454172 -0.84 0.402 -.6868853 .2752783 _k_eq_m5 | .0218079 .1214276 0.18 0.857 -.216222 .2598378 _k_eq_m4 | -.052295 .1562626 -0.33 0.738 -.3586106 .2540206 _k_eq_m3 | .0007745 .1164445 0.01 0.995 -.2274871 .2290361 _k_eq_m2 | -.0562325 .0971349 -0.58 0.563 -.2466423 .1341774 _k_eq_p0 | 1.302233 .144724 9.00 0.000 1.018536 1.58593 _k_eq_p1 | 1.15011 .1929457 5.96 0.000 .7718865 1.528334 _k_eq_p2 | 1.204847 .2464706 4.89 0.000 .7216999 1.687993 _k_eq_p3 | 1.124328 .3024511 3.72 0.000 .5314452 1.717212 _k_eq_p4 | 1.048144 .3597702 2.91 0.004 .3429007 1.753388 _k_eq_p5 | 1.216724 .4190667 2.90 0.004 .3952439 2.038204 _k_eq_p6 | 1.040801 .4736776 2.20 0.028 .1122692 1.969333 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . des a_eq*, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_eq_m6 double %10.0g Event time <= - 6 a_eq_m5 double %10.0g Event-time = - 5 a_eq_m4 double %10.0g Event-time = - 4 a_eq_m3 double %10.0g Event-time = - 3 a_eq_m2 double %10.0g Event-time = - 2 a_eq_m1 double %10.0g Event-time = - 1 a_eq_p0 double %10.0g Event-time = + 0 a_eq_p1 double %10.0g Event-time = + 1 a_eq_p2 double %10.0g Event-time = + 2 a_eq_p3 double %10.0g Event-time = + 3 a_eq_p4 double %10.0g Event-time = + 4 a_eq_p5 double %10.0g Event-time = + 5 a_eq_p6 double %10.0g Event time >= + 6 . des a_evtime, s Variable Storage Display Value name type format label Variable label ---------------------------------------------------------------------------------------------------------------- a_evtime long %12.0g . drop a_* . . * Test factor variables in varlist . cap gen pois=rpoisson(5) . xtevent y i.pois, panelvar(i) timevar(t) policyvar(z) window(5) trend(-3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(35, 7965) = 97.06 Prob > F = 0.0000 R-squared = 0.7329 Adj R-squared = 0.6982 Root MSE = 1.0392 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.2269963 .245431 -0.92 0.355 -.7081053 .2541127 _k_eq_m5 | .0049367 .1214013 0.04 0.968 -.2330417 .242915 _k_eq_m4 | -.0661857 .1562665 -0.42 0.672 -.3725089 .2401376 _k_eq_m3 | .0007736 .1166076 0.01 0.995 -.2278077 .229355 _k_eq_m2 | -.0549915 .0971478 -0.57 0.571 -.2454267 .1354437 _k_eq_p0 | 1.31618 .1446942 9.10 0.000 1.032541 1.599818 _k_eq_p1 | 1.154669 .1928849 5.99 0.000 .776564 1.532774 _k_eq_p2 | 1.216972 .2464659 4.94 0.000 .7338339 1.700109 _k_eq_p3 | 1.151942 .3023871 3.81 0.000 .5591837 1.7447 _k_eq_p4 | 1.075153 .3596498 2.99 0.003 .3701454 1.780161 _k_eq_p5 | 1.250005 .4190163 2.98 0.003 .4286228 2.071386 _k_eq_p6 | 1.082096 .4735412 2.29 0.022 .1538318 2.010361 | pois | 1 | .2863611 .1564649 1.83 0.067 -.0203511 .5930732 2 | .3106157 .1485735 2.09 0.037 .0193728 .6018585 3 | .2861503 .1465356 1.95 0.051 -.0010978 .5733985 4 | .2951674 .1458902 2.02 0.043 .0091844 .5811505 5 | .3404444 .1462031 2.33 0.020 .053848 .6270407 6 | .2986822 .1467845 2.03 0.042 .0109461 .5864183 7 | .1972302 .1479378 1.33 0.183 -.0927667 .4872271 8 | .2644805 .15049 1.76 0.079 -.0305194 .5594803 9 | .4090826 .1554784 2.63 0.009 .1043041 .7138611 10 | .2319131 .1657864 1.40 0.162 -.0930717 .5568979 11 | .3169311 .1950517 1.62 0.104 -.0654214 .6992836 12 | .2379955 .2631508 0.90 0.366 -.277849 .7538401 13 | 1.010415 .3766402 2.68 0.007 .2721019 1.748729 14 | .9324008 .5700985 1.64 0.102 -.1851415 2.049943 15 | 1.932909 1.110065 1.74 0.082 -.2431083 4.108927 | t | 8 | .257309 .0466031 5.52 0.000 .1659547 .3486633 9 | .4096197 .0467837 8.76 0.000 .3179115 .5013279 10 | .6214038 .0471265 13.19 0.000 .5290234 .7137841 11 | .7361753 .0475898 15.47 0.000 .6428869 .8294637 12 | .8776974 .0482454 18.19 0.000 .7831239 .972271 13 | 1.078307 .0490093 22.00 0.000 .9822356 1.174378 14 | 1.21441 .0498455 24.36 0.000 1.1167 1.31212 15 | 1.444126 .0508489 28.40 0.000 1.344449 1.543803 | _cons | 1.641866 .1787949 9.18 0.000 1.291381 1.99235 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7965) = 11.901 Prob > F = 0.000 . cap drop pois . * Test time series variables in varlist . . xtevent y l.eta , panelvar(i) timevar(t) policyvar(z) window(5) trend(-3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(21, 7979) = 178.89 Prob > F = 0.0000 R-squared = 0.7410 Adj R-squared = 0.7079 Root MSE = 1.0225 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.1905992 .2418811 -0.79 0.431 -.6647494 .2835509 _k_eq_m5 | -.0172881 .1205073 -0.14 0.886 -.253514 .2189377 _k_eq_m4 | -.0598661 .154064 -0.39 0.698 -.3618719 .2421397 _k_eq_m3 | .0006803 .1147142 0.01 0.995 -.2241896 .2255502 _k_eq_m2 | -.0507082 .0955625 -0.53 0.596 -.2380358 .1366193 _k_eq_p0 | 1.224529 .1422959 8.61 0.000 .9455924 1.503467 _k_eq_p1 | .8872155 .1899061 4.67 0.000 .5149498 1.259481 _k_eq_p2 | .9899751 .2423391 4.09 0.000 .5149271 1.465023 _k_eq_p3 | .9615866 .2973976 3.23 0.001 .3786097 1.544564 _k_eq_p4 | .9313568 .35388 2.63 0.009 .2376594 1.625054 _k_eq_p5 | 1.153426 .4123855 2.80 0.005 .3450426 1.961809 _k_eq_p6 | 1.017295 .4662936 2.18 0.029 .1032378 1.931353 | eta | L1. | .1672026 .0100676 16.61 0.000 .1474675 .1869378 | t | 8 | .2726674 .0458129 5.95 0.000 .1828621 .3624727 9 | .4416902 .0460325 9.60 0.000 .3514544 .531926 10 | .671576 .0464139 14.47 0.000 .5805927 .7625594 11 | .7940153 .0469168 16.92 0.000 .7020461 .8859845 12 | .9630645 .0476763 20.20 0.000 .8696065 1.056523 13 | 1.183873 .0485588 24.38 0.000 1.088685 1.279061 14 | 1.341169 .0495968 27.04 0.000 1.243947 1.438392 15 | 1.58076 .0506567 31.21 0.000 1.48146 1.68006 | _cons | 1.626315 .106004 15.34 0.000 1.41852 1.834111 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7979) = 9.944 Prob > F = 0.000 . . * Test asymmetric window . * Must fail . * xtevent y eta , panelvar(i) timevar(t) policyvar(z) window(-4 2) trend(-3 5) . xtevent y , panelvar(i) timevar(t) policyvar(z) window(-4 6) trend(-3) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 162.37 Prob > F = 0.0000 R-squared = 0.7425 Adj R-squared = 0.7097 Root MSE = 1.0393 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m5 | -.2779749 .1884818 -1.47 0.140 -.6474486 .0914987 _k_eq_m4 | .0142402 .0594551 0.24 0.811 -.1023072 .1307877 _k_eq_m3 | .0001242 .114841 0.00 0.999 -.2249941 .2252425 _k_eq_m2 | -.0045635 .0970425 -0.05 0.962 -.1947922 .1856651 _k_eq_p0 | 1.374762 .1468815 9.36 0.000 1.086836 1.662688 _k_eq_p1 | 1.198331 .1945561 6.16 0.000 .8169505 1.579712 _k_eq_p2 | 1.265622 .2469504 5.13 0.000 .7815349 1.74971 _k_eq_p3 | 1.244678 .3020339 4.12 0.000 .6526126 1.836743 _k_eq_p4 | 1.21234 .3584995 3.38 0.001 .5095876 1.915093 _k_eq_p5 | 1.296341 .41576 3.12 0.002 .4813425 2.111339 _k_eq_p6 | 1.169561 .4747985 2.46 0.014 .2388319 2.10029 _k_eq_p7 | 1.150923 .5297156 2.17 0.030 .1125424 2.189304 | t | 9 | .1536023 .0465611 3.30 0.001 .0623305 .2448742 10 | .3664564 .0467564 7.84 0.000 .2748017 .4581111 11 | .4772554 .047092 10.13 0.000 .3849428 .569568 12 | .624587 .0475572 13.13 0.000 .5313625 .7178114 13 | .8261976 .0481997 17.14 0.000 .7317136 .9206816 14 | .9574148 .0489705 19.55 0.000 .8614199 1.05341 15 | 1.187669 .0498328 23.83 0.000 1.089984 1.285355 16 | 1.370349 .0508139 26.97 0.000 1.270741 1.469958 | _cons | 2.120945 .1026868 20.65 0.000 1.919652 2.322238 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 12.245 Prob > F = 0.000 . . * Test overlay plot . xtevent y , panelvar(i) timevar(t) policyvar(z) window(5) trend(-3, saveov) plot No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 9,000 Absorbed variable: i No. of categories = 1,000 F(20, 7980) = 168.25 Prob > F = 0.0000 R-squared = 0.7320 Adj R-squared = 0.6978 Root MSE = 1.0399 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m6 | -.2058035 .2454172 -0.84 0.402 -.6868853 .2752783 _k_eq_m5 | .0218079 .1214276 0.18 0.857 -.216222 .2598378 _k_eq_m4 | -.052295 .1562626 -0.33 0.738 -.3586106 .2540206 _k_eq_m3 | .0007745 .1164445 0.01 0.995 -.2274871 .2290361 _k_eq_m2 | -.0562325 .0971349 -0.58 0.563 -.2466423 .1341774 _k_eq_p0 | 1.302233 .144724 9.00 0.000 1.018536 1.58593 _k_eq_p1 | 1.15011 .1929457 5.96 0.000 .7718865 1.528334 _k_eq_p2 | 1.204847 .2464706 4.89 0.000 .7216999 1.687993 _k_eq_p3 | 1.124328 .3024511 3.72 0.000 .5314452 1.717212 _k_eq_p4 | 1.048144 .3597702 2.91 0.004 .3429007 1.753388 _k_eq_p5 | 1.216724 .4190667 2.90 0.004 .3952439 2.038204 _k_eq_p6 | 1.040801 .4736776 2.20 0.028 .1122692 1.969333 | t | 8 | .2590782 .0465877 5.56 0.000 .1677542 .3504023 9 | .411997 .0467831 8.81 0.000 .3202899 .5037042 10 | .6246886 .0471189 13.26 0.000 .5323231 .717054 11 | .7357735 .0475844 15.46 0.000 .6424957 .8290513 12 | .8807019 .0482273 18.26 0.000 .7861638 .9752399 13 | 1.082801 .0489985 22.10 0.000 .9867515 1.178851 14 | 1.216376 .0498613 24.40 0.000 1.118635 1.314117 15 | 1.444656 .0508429 28.41 0.000 1.34499 1.544321 | _cons | 1.936722 .1061248 18.25 0.000 1.728689 2.144754 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 7980) = 11.903 Prob > F = 0.000 . xteventplot, overlay(trend) . . *------------------------ 2.6: Hypotheses tests ---------------------------------- . . xtevent y eta, panelvar(i) timevar(t) policyvar(z) window(3) No proxy or instruments provided. Implementing OLS estimator Linear regression, absorbing indicators Number of obs = 13,000 Absorbed variable: i No. of categories = 1,000 F(21, 11979) = 572.74 Prob > F = 0.0000 R-squared = 0.7653 Adj R-squared = 0.7453 Root MSE = 1.0058 ------------------------------------------------------------------------------ y | Coefficient Std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | .1354244 .0756957 1.79 0.074 -.0129515 .2838003 _k_eq_m3 | .1927795 .0902369 2.14 0.033 .0159005 .3696585 _k_eq_m2 | .1540638 .0894043 1.72 0.085 -.0211831 .3293106 _k_eq_p0 | 1.068977 .0892098 11.98 0.000 .8941116 1.243843 _k_eq_p1 | 1.006862 .0907016 11.10 0.000 .8290722 1.184652 _k_eq_p2 | 1.062882 .0922647 11.52 0.000 .8820284 1.243736 _k_eq_p3 | 1.031628 .0947797 10.88 0.000 .8458445 1.217412 _k_eq_p4 | 1.056418 .0782796 13.50 0.000 .9029772 1.209858 eta | .2593535 .0068421 37.91 0.000 .2459418 .2727651 | t | 6 | .1795681 .0450092 3.99 0.000 .0913429 .2677934 7 | .347742 .0450596 7.72 0.000 .2594178 .4360661 8 | .630268 .0451644 13.95 0.000 .5417385 .7187975 9 | .8095375 .0453086 17.87 0.000 .7207253 .8983497 10 | 1.040501 .0454959 22.87 0.000 .9513215 1.12968 11 | 1.187814 .0457683 25.95 0.000 1.098101 1.277527 12 | 1.362563 .0460682 29.58 0.000 1.272262 1.452864 13 | 1.605032 .0464086 34.58 0.000 1.514063 1.696 14 | 1.75353 .0467701 37.49 0.000 1.661854 1.845207 15 | 1.989215 .0471243 42.21 0.000 1.896844 2.081587 16 | 2.211903 .0475437 46.52 0.000 2.11871 2.305097 17 | 2.415992 .0479468 50.39 0.000 2.322008 2.509975 | _cons | .9034138 .0791741 11.41 0.000 .7482197 1.058608 ------------------------------------------------------------------------------ F test of absorbed indicators: F(999, 11979) = 14.229 Prob > F = 0.000 . . xteventtest, coefs(1 2) ( 1) _k_eq_p1 = 0 ( 2) _k_eq_p2 = 0 F( 2, 11979) = 85.53 Prob > F = 0.0000 . xteventtest, coefs(1 2) cumul Test sums of coefficients ( 1) _k_eq_p1 + _k_eq_p2 = 0 F( 1, 11979) = 170.94 Prob > F = 0.0000 . xteventtest, coefs(-2 -3) ( 1) _k_eq_m2 = 0 ( 2) _k_eq_m3 = 0 F( 2, 11979) = 2.58 Prob > F = 0.0761 . xteventtest, allpre Test for all pre-event coefficients = 0 ( 1) _k_eq_m4 = 0 ( 2) _k_eq_m3 = 0 ( 3) _k_eq_m2 = 0 F( 3, 11979) = 1.74 Prob > F = 0.1566 . xteventtest, allpre cumul Test for all pre-event coefficients = 0 Test sums of coefficients ( 1) _k_eq_m4 + _k_eq_m3 + _k_eq_m2 = 0 F( 1, 11979) = 4.98 Prob > F = 0.0256 . xteventtest, allpost Test for all post-event coefficients = 0 ( 1) _k_eq_p0 = 0 ( 2) _k_eq_p1 = 0 ( 3) _k_eq_p2 = 0 ( 4) _k_eq_p3 = 0 ( 5) _k_eq_p4 = 0 F( 5, 11979) = 44.66 Prob > F = 0.0000 . xteventtest, allpost cumul Test for all post-event coefficients = 0 Test sums of coefficients ( 1) _k_eq_p0 + _k_eq_p1 + _k_eq_p2 + _k_eq_p3 + _k_eq_p4 = 0 F( 1, 11979) = 219.10 Prob > F = 0.0000 . xteventtest, coefs(1 2) testopts(coef) ( 1) _k_eq_p1 = 0 ( 2) _k_eq_p2 = 0 F( 2, 11979) = 85.53 Prob > F = 0.0000 Constrained coefficients ------------------------------------------------------------------------------ | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- _k_eq_m4 | -.4309127 .0620137 -6.95 0.000 -.5524574 -.309368 _k_eq_m3 | -.4184633 .0771514 -5.42 0.000 -.5696773 -.2672494 _k_eq_m2 | -.4695899 .075589 -6.21 0.000 -.6177416 -.3214382 _k_eq_p0 | .3974088 .0729196 5.45 0.000 .254489 .5403287 _k_eq_p1 | 0 (omitted) _k_eq_p2 | -2.22e-16 . . . . . _k_eq_p3 | .33181 .0782141 4.24 0.000 .1785132 .4851068 _k_eq_p4 | .329905 .055141 5.98 0.000 .2218306 .4379795 eta | .2725277 .0067675 40.27 0.000 .2592635 .2857918 | t | 6 | .1872903 .0450053 4.16 0.000 .0990816 .2754989 7 | .3551906 .045056 7.88 0.000 .2668825 .4434987 8 | .6479289 .0451421 14.35 0.000 .5594521 .7364057 9 | .8307415 .0452795 18.35 0.000 .7419953 .9194878 10 | 1.064703 .0454506 23.43 0.000 .9756219 1.153785 11 | 1.215921 .0457167 26.60 0.000 1.126318 1.305524 12 | 1.392897 .0460076 30.28 0.000 1.302724 1.48307 13 | 1.639145 .0463299 35.38 0.000 1.54834 1.72995 14 | 1.792725 .0466725 38.41 0.000 1.701248 1.884201 15 | 2.033178 .0469996 43.26 0.000 1.94106 2.125295 16 | 2.25316 .0474322 47.50 0.000 2.160195 2.346126 17 | 2.458771 .0478287 51.41 0.000 2.365028 2.552513 | _cons | 1.468441 .0662724 22.16 0.000 1.33855 1.598333 ------------------------------------------------------------------------------ . xteventtest, linpretrend Specification test for linear pre-trend chi2( 1) =.43 Prob > chi2 =.5101 . xteventtest, overidpre(2) Overidentification test for pretrends: 2 pre-event coefficients are 0 ( 1) _k_eq_m4 = 0 ( 2) _k_eq_m3 = 0 F( 2, 11979) = 2.44 Prob > F = 0.0870 . xteventtest, overidpost(3) Overidentification test for effects leveling off: 3 last post-event coefficients are equal ( 1) - _k_eq_p3 + _k_eq_p4 = 0 ( 2) - _k_eq_p2 + _k_eq_p4 = 0 F( 2, 11979) = 0.07 Prob > F = 0.9368 . xteventtest, overid Overidentification test for pretrends: 3 pre-event coefficients are 0 Overidentification test for effects leveling off: 2 last post-event coefficients are equal Overidentification test for pretrends: 3 pre-event coefficients are 0 ( 1) _k_eq_m4 = 0 ( 2) _k_eq_m3 = 0 ( 3) _k_eq_m2 = 0 F( 3, 11979) = 1.74 Prob > F = 0.1566 Overidentification test for effects leveling off: 2 last post-event coefficients are equal ( 1) - _k_eq_p3 + _k_eq_p4 = 0 F( 1, 11979) = 0.10 Prob > F = 0.7478 Joint overidentification test ( 1) _k_eq_m4 = 0 ( 2) _k_eq_m3 = 0 ( 3) _k_eq_m2 = 0 ( 4) - _k_eq_p3 + _k_eq_p4 = 0 F( 4, 11979) = 1.34 Prob > F = 0.2519 . . cap log close
Encontrar Diferença