bcallaway11 / did

Difference in Differences with Multiple Periods, website: https://bcallaway11.github.io/did
298 stars 95 forks source link

Time Invariant Controls #91

Closed apodges closed 2 years ago

apodges commented 2 years ago

How does the DID approach treat time invariant variables? In the TWFE framework, which I am most used to, my understanding is that the there is no need to include time invariant variables as controls; they are handled by the inclusion of time fixed effects. How should one think about time invariant variables in the DID framework? Does the approach control for them, like in the case of TWFE approach? Or, am I thinking about this wrong?

pedrohcgs commented 2 years ago

The role of covariates in DiD allowing for covariate-specific trends. In TWFE, if you really wanted to do this, you would interact time-invariant covariates with cohort dummies and with time dummies.

We implicitly do all that by allowing all slope coefficients in outcome regressions to vary with time. We also include the time-invariant covariates into the "generalized" propensity score. Here, again, the "logit betas" are allowed to change with cohort.

Hope this helps.

Thanks,

Pedro H. C. Sant'Anna Department of Economics Vanderbilt University 615-875-8448 (phone) @.*** https://email.vanderbilt.edu/owa/redir.aspx?SURL=R33SAibMcqASxYI7tVlx3_2Xx09NkN6m1ZKVuyK8lL42lUjfQp_SCG0AYQBpAGwAdABvADoAcABlAGQAcgBvAC4AaAAuAHMAYQBuAHQAYQBuAG4AYQBAAHYAYQBuAGQAZQByAGIAaQBsAHQALgBlAGQAdQA.&URL=mailto%3apedro.h.santanna%40vanderbilt.edu https://pedrohcgs.github.io

On Thu, Dec 16, 2021 at 11:07 AM apodges @.***> wrote:

How does the DID approach treat time invariant variables? In the TWFE framework, which I am most used to, my understanding is that the there is no need to include time invariant variables as controls; they are handled by the inclusion of time fixed effects. How should one think about time invariant variables in the DID framework? Does the approach control for them, like in the case of TWFE approach? Or, am I thinking about this wrong?

— Reply to this email directly, view it on GitHub https://github.com/bcallaway11/did/issues/91, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABE7347JPJGWQ6MFLSLWOPTURIMD3ANCNFSM5KG2PS2A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

frederickluser commented 2 years ago

Dear Pedro, Dear Brant,

I don't understand this and would like to quickly follow up on this. Let's assume I would estimate a TWFE with region-time fixed effects - so the time-constant period-effects were allowed to vary across regions. How would I do that with your estimator? Is this already happening anyway, could I include region as a covariate in xformla or is not possible? Thanks a lot!

bcallaway11 commented 2 years ago

Hi Frederic,

Yes, you are right. You would just include region as a covariate in xformla. Hope this helps, and I'm happy to follow up if needed.

Brant