Triple Diff in Diff event time
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
Research direction
Start with the feols documentation and the event-study examples, then compare the two formulas in the issue with the cited paper's triple-difference specification. Reproduce the reported results using the provided formula shapes and determine whether the behavior is a modeling question or an implementation bug; the issue is ready only when the correct specification and expected output are established.
Written by the indexing model from the issue text.
Description
Hi!
I'm trying to do a Triple Diff in Diff event study with the feols function but I'm getting weird results. I wonder wether my formula is correctly specified.
The standard event study diff in diff takes the form:
feols(y~ i(week, treat, -1) | c, data=df)
And my intution is that for the triple diff in diff version, it takes the form:
feols(y~ i(week, treat * treat_other, -1) | c, data=df)
, where treat_other is the extra control group we add to the comparison. We followed examples of the following paper
For the static version (no event time) triple diff, we get the desired results using the treat_other variable. In fact, the standard triple diff with no event study is written as:
feols(y~ treat_week*treat_other*treat | c, df)
Am I doing this right? I wonder wether the second formula here is correctly specified.
Thanks!
- Dominant language
- R
- Stars
- 464
- Forks
- 82
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 12
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lrberge/fixest
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
lrberge/fixest#686 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
lrberge/fixest#713 · 1 comment ·
Maintainers usually reply within 1 day
-
etable notes spacingOpen
Difficulty 3/5 Half a day Newbie friendliness 50/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 47/100
lrberge/fixest#689 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug dependencies R
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
enhancement needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
JamesHWade/graft#142 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100