Hi all,
I'm doing a difference-in-difference regression, but apart from the treat*post interaction, I also want to see heterogeneity based on variable M(which is an industry-quarter level variable), so it does not change across firms (i) within the same industry-year, so I did the following regression:
\[Y_{i,t}= \sum_{k \in \text{(-8,8)}} \beta_{k} \,{I_{t=s+k}}*Treat_i*M_{nais,t=s+k}+ \mu_i + \tau_t + \varepsilon_{i,t}\] Where s is the event date, k is the event window (I consider 8 quarters before and 8 quarters after). Treat_i is 1 if i is inthe treated group.
I run the regression with the following code:
Where pre_* and post_* are interacted with M already (M is a continuous variable)
The result gives me only a coefficient estimate, but not the confidence interval. Does anyone know why this happens?
I paste the result below:
{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{1}{c}}
\toprule
&\multicolumn{1}{c}{(1)} \\
\midrule
pre\_8 & -0.00939 \\
& (.) \\
\addlinespace
pre\_7 & -0.00580 \\
& (.) \\
\addlinespace
pre\_6 & -0.00778 \\
& (.) \\
\addlinespace
pre\_5 & -0.0169 \\
& (.) \\
\addlinespace
pre\_4 & -0.0146 \\
& (.) \\
\addlinespace
pre\_3 & -0.0236 \\
& (.) \\
\addlinespace
pre\_2 & -0.0241 \\
& (.) \\
\addlinespace
pre\_1 & 0 \\
& (.) \\
\addlinespace
pre\_8\_br & 0.102 \\
& (.) \\
\addlinespace
pre\_7\_br & 0.0737 \\
& (.) \\
\addlinespace
pre\_6\_br & 0.0848 \\
& (.) \\
\addlinespace
pre\_5\_br & 0.111 \\
& (.) \\
\addlinespace
pre\_4\_br & 0.106 \\
& (.) \\
\addlinespace
pre\_3\_br & 0.132 \\
& (.) \\
\addlinespace
pre\_2\_br & 0.145 \\
& (.) \\
\addlinespace
pre\_1\_br & 0 \\
& (.) \\
\addlinespace
current & 0.000961 \\
& (.) \\
\addlinespace
current\_br & -0.0248 \\
& (.) \\
\addlinespace
post\_1 & 0.00118 \\
& (.) \\
\addlinespace
post\_2 & 0.00161 \\
& (.) \\
\addlinespace
post\_3 & -0.00862 \\
& (.) \\
\addlinespace
post\_4 & -0.0137 \\
& (.) \\
\addlinespace
post\_5 & -0.0128 \\
& (.) \\
\addlinespace
post\_6 & -0.0183 \\
& (.) \\
\addlinespace
post\_7 & -0.0155 \\
& (.) \\
\addlinespace
post\_8 & -0.0253 \\
& (.) \\
\addlinespace
post\_1\_br & -0.0269 \\
& (.) \\
\addlinespace
post\_2\_br & -0.0173 \\
& (.) \\
\addlinespace
post\_3\_br & 0.0344 \\
& (.) \\
\addlinespace
post\_4\_br & 0.0872 \\
& (.) \\
\addlinespace
post\_5\_br & 0.0753 \\
& (.) \\
\addlinespace
post\_6\_br & 0.0936 \\
& (.) \\
\addlinespace
post\_7\_br & 0.110 \\
& (.) \\
\addlinespace
post\_8\_br & 0.145 \\
& (.) \\
\addlinespace
Constant & 0.207 \\
& (.) \\
\midrule
Observations & 115454 \\
R-squared & 0.890 \\
\bottomrule
\end{tabular}
}
I'm doing a difference-in-difference regression, but apart from the treat*post interaction, I also want to see heterogeneity based on variable M(which is an industry-quarter level variable), so it does not change across firms (i) within the same industry-year, so I did the following regression:
\[Y_{i,t}= \sum_{k \in \text{(-8,8)}} \beta_{k} \,{I_{t=s+k}}*Treat_i*M_{nais,t=s+k}+ \mu_i + \tau_t + \varepsilon_{i,t}\] Where s is the event date, k is the event window (I consider 8 quarters before and 8 quarters after). Treat_i is 1 if i is inthe treated group.
I run the regression with the following code:
Code:
reghdfe Y pre_* current* post_* [aw=atq], absorb(i t) cluster(state)
The result gives me only a coefficient estimate, but not the confidence interval. Does anyone know why this happens?
I paste the result below:
{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{1}{c}}
\toprule
&\multicolumn{1}{c}{(1)} \\
\midrule
pre\_8 & -0.00939 \\
& (.) \\
\addlinespace
pre\_7 & -0.00580 \\
& (.) \\
\addlinespace
pre\_6 & -0.00778 \\
& (.) \\
\addlinespace
pre\_5 & -0.0169 \\
& (.) \\
\addlinespace
pre\_4 & -0.0146 \\
& (.) \\
\addlinespace
pre\_3 & -0.0236 \\
& (.) \\
\addlinespace
pre\_2 & -0.0241 \\
& (.) \\
\addlinespace
pre\_1 & 0 \\
& (.) \\
\addlinespace
pre\_8\_br & 0.102 \\
& (.) \\
\addlinespace
pre\_7\_br & 0.0737 \\
& (.) \\
\addlinespace
pre\_6\_br & 0.0848 \\
& (.) \\
\addlinespace
pre\_5\_br & 0.111 \\
& (.) \\
\addlinespace
pre\_4\_br & 0.106 \\
& (.) \\
\addlinespace
pre\_3\_br & 0.132 \\
& (.) \\
\addlinespace
pre\_2\_br & 0.145 \\
& (.) \\
\addlinespace
pre\_1\_br & 0 \\
& (.) \\
\addlinespace
current & 0.000961 \\
& (.) \\
\addlinespace
current\_br & -0.0248 \\
& (.) \\
\addlinespace
post\_1 & 0.00118 \\
& (.) \\
\addlinespace
post\_2 & 0.00161 \\
& (.) \\
\addlinespace
post\_3 & -0.00862 \\
& (.) \\
\addlinespace
post\_4 & -0.0137 \\
& (.) \\
\addlinespace
post\_5 & -0.0128 \\
& (.) \\
\addlinespace
post\_6 & -0.0183 \\
& (.) \\
\addlinespace
post\_7 & -0.0155 \\
& (.) \\
\addlinespace
post\_8 & -0.0253 \\
& (.) \\
\addlinespace
post\_1\_br & -0.0269 \\
& (.) \\
\addlinespace
post\_2\_br & -0.0173 \\
& (.) \\
\addlinespace
post\_3\_br & 0.0344 \\
& (.) \\
\addlinespace
post\_4\_br & 0.0872 \\
& (.) \\
\addlinespace
post\_5\_br & 0.0753 \\
& (.) \\
\addlinespace
post\_6\_br & 0.0936 \\
& (.) \\
\addlinespace
post\_7\_br & 0.110 \\
& (.) \\
\addlinespace
post\_8\_br & 0.145 \\
& (.) \\
\addlinespace
Constant & 0.207 \\
& (.) \\
\midrule
Observations & 115454 \\
R-squared & 0.890 \\
\bottomrule
\end{tabular}
}

Comment