Triple Diff in Diff event time

Open
#472 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
r
Domain
data

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lrberge/fixest

All issues in lrberge/fixest

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.