Hello everyone,
I am trying to run a double-difference model with the xtdidregress command, but I don't understand why adding covariates to my model modifies the timing on which my treatment is assigned.
My dataset is a panel data with yearly observations of firms, with a treatment beginning in year 19. It has quite some missing values.
Here is the output I obtain running xtdidregress on a simple model without covariates:
However, when I try to add covariates to my model, the treatment assignment time changes, as you can see below:
For diagnostic purposes, I tried to tabulate my treatment variable treatment19_balanced, but I am still unable what modifies my treatment assignment time:
Any help on this would be greatly appreciated!
I am trying to run a double-difference model with the xtdidregress command, but I don't understand why adding covariates to my model modifies the timing on which my treatment is assigned.
My dataset is a panel data with yearly observations of firms, with a treatment beginning in year 19. It has quite some missing values.
Here is the output I obtain running xtdidregress on a simple model without covariates:
Code:
. xtdidregress (leverage3) (treatment19_balanced), group(firm) time(year) Treatment and time information Time variable: year Control: treatment19_balanced = 0 Treatment: treatment19_balanced = 1 ----------------------------------- | Control Treatment -------------+--------------------- Group | firm | 206 114 -------------+--------------------- Time | Minimum | 16 19 Maximum | 23 19 ----------------------------------- Difference-in-differences regression Number of obs = 2,260 Data type: Longitudinal (Std. err. adjusted for 320 clusters in firm) -------------------------------------------------------------------------------------- | Robust leverage3 | Coefficient std. err. t P>|t| [95% conf. interval] ---------------------+---------------------------------------------------------------- ATET | treatment19_balanced | (1 vs 0) | .9547445 .8713181 1.10 0.274 -.7595115 2.669 -------------------------------------------------------------------------------------- Note: ATET estimate adjusted for panel effects and time effects. Note: Treatment occurs at different times and estimation sample contains units that switch in and out of treatment.
Code:
. xtdidregress (leverage3 PPENet) (treatment19_balanced), group(firm) time(year) Treatment and time information Time variable: year Control: treatment19_balanced = 0 Treatment: treatment19_balanced = 1 ----------------------------------- | Control Treatment -------------+--------------------- Group | firm | 204 113 -------------+--------------------- Time | Minimum | 16 19 Maximum | 23 22 ----------------------------------- Difference-in-differences regression Number of obs = 2,208 Data type: Longitudinal (Std. err. adjusted for 317 clusters in firm) -------------------------------------------------------------------------------------- | Robust leverage3 | Coefficient std. err. t P>|t| [95% conf. interval] ---------------------+---------------------------------------------------------------- ATET | treatment19_balanced | (1 vs 0) | .9151748 .8938925 1.02 0.307 -.8435583 2.673908 -------------------------------------------------------------------------------------- Note: ATET estimate adjusted for covariates, panel effects, and time effects. Note: Treatment occurs at different times and estimation sample contains units that switch in and out of treatment.
Code:
tab firm year if treatment19_balanced & year > 17 Identifier | year (RIC) | 19 20 21 22 23 | Total -----------+-------------------------------------------------------+---------- ALAGR.PA | 1 1 1 1 1 | 5 ALAMA.PA | 1 1 1 1 1 | 5 ALAMG.PA | 1 1 1 1 1 | 5 ALATA.PA | 1 1 1 1 1 | 5 ALATI.PA | 1 1 1 1 1 | 5 ALAUR.PA | 1 1 1 1 1 | 5 ALAVI.PA | 1 1 1 1 1 | 5 ALBI.PA | 1 1 1 1 1 | 5 ALBKK.PA | 1 1 1 1 1 | 5 ALBON.PA | 1 1 1 1 1 | 5 ALBOO.PA | 1 1 0 0 0 | 2 ALBOU.PA | 1 1 1 1 1 | 5 ALBPS.PA | 1 1 1 1 1 | 5 ALCAP.PA | 1 1 1 1 1 | 5 ALCBI.PA | 1 1 1 1 1 | 5 ALCHI.PA | 1 1 1 1 1 | 5 ALCIS.PA | 1 1 1 1 1 | 5 ALCLS.PA | 1 1 1 1 1 | 5 ALCOI.PA | 1 1 1 1 1 | 5 ALCOX.PA | 1 1 1 0 0 | 3 ALCYB.PA | 1 1 0 1 1 | 4 ALDAR.PA | 1 1 1 1 1 | 5 ALDBL.PA | 1 1 1 1 1 | 5 ALDEL.PA | 1 1 1 1 1 | 5 ALDEV.PA | 1 1 1 1 1 | 5 ALDLT.PA | 1 1 1 1 1 | 5 ALDMS.PA | 1 1 1 1 1 | 5 ALDNX.PA | 1 1 1 1 1 | 5 ALDRV.PA | 1 1 1 1 1 | 5 ALDSL.PA | 1 1 1 1 1 | 5 ALDUB.PA | 1 1 1 1 1 | 5 ALDUX.PA | 1 1 1 1 1 | 5 ALDVI.PA | 1 1 1 1 1 | 5 ALECP.PA | 1 1 1 1 1 | 5 ALE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.PA | 1 1 1 1 1 | 5 ALNOV.PA | 1 1 1 1 1 | 5 ALNSE.PA | 1 1 1 1 1 | 5 ALNTG.PA | 1 1 1 1 1 | 5 ALORA.PA | 1 1 1 1 1 | 5 ALPDX.PA | 1 1 1 1 1 | 5 ALPJT.PA | 1 1 1 1 1 | 5 ALPM.PA | 1 1 1 1 1 | 5 ALPRG.PA | 1 1 0 0 0 | 2 ALPRI.PA | 1 1 1 1 1 | 5 ALPRO.PA | 1 1 1 1 1 | 5 ALREA.PA | 1 1 1 1 1 | 5 ALRGR.PA | 1 1 1 1 1 | 5 ALRIB.PA | 1 1 1 1 1 | 5 ALRPD.PA | 1 1 0 1 1 | 4 ALSAF.PA | 1 1 1 1 1 | 5 ALSEN.PA | 1 1 1 1 1 | 5 ALSGD.PA | 1 1 1 1 1 | 5 ALSOG.PA | 1 1 1 1 1 | 5 ALSTW.PA | 1 1 1 1 1 | 5 ALTME.PA | 1 1 1 1 1 | 5 ALTRO.PA | 1 1 1 1 1 | 5 ALU10.PA | 1 1 1 1 1 | 5 ALVAL.PA | 1 1 1 1 1 | 5 ALVIO.PA | 1 1 1 1 1 | 5 ALVU.PA | 1 1 1 1 1 | 5 CHMS.EUA | 1 1 1 1 1 | 5 MLFMV.EUL | 1 1 1 1 1 | 5 MLHK.EUA | 1 1 1 1 1 | 5 MLNEU.EUB | 1 1 0 0 0 | 2 MLRZE.EUL | 1 1 1 1 1 | 5 MLSEQ.EUA | 1 1 1 1 1 | 5 MLSUM.EUA | 1 1 1 1 1 | 5 SNG.EUL | 1 1 1 1 1 | 5 SYMA.BR | 1 1 1 1 1 | 5 TRDL.EUA | 1 1 1 1 1 | 5 ZCCM.EUA | 1 0 1 1 1 | 4 -----------+-------------------------------------------------------+---------- Total | 114 112 107 107 107 | 547
Comment