2
$\begingroup$

I want to estimate the impact that replications have on the citations. For that, I want to make a staggered diff-in-diff, comparing replicated papers vs non-replicated ones.

In my data set I have around 80 papers that were replicated (therefore my treatment group), and 160 that were never replicated. To ensure comparability, I took only empirical papers that were published in the same journals, volumes, issues, and about the same topics or JEL code.

My date looks sth like this: Example dataset

My supervisor suggested to start with a "simple" diff in diff,to see some initial effect and then proceed to do the staggered version (and probably th a Poisson regression since my dependent variable is a non-negative count number).

For the diff in diff, my treatment dummy is "replicated", which is 1 for replicated papers and 0 for the rest. And my problem/question is with my time dummy d_time, because: as you can see, my treated observations have different treatment years. In this example, one was treated in 2021 and the other one in 2018. But I have 80 papers that were replicated in total, so each was replicated in different years. So, there is a before and after for the control group, but there is no specific before and after for all the treatment so I don't know what to compare against.

Would it be ok, that my time dummy d_time, takes the values of 0 for all my control ones? However, I think is because of this that I get collinearity in my first results:

Initial results

Am I doing something completly wrong? Could someone share some light for me? I'm very new at this, I apologize if this is not clear but I hope it is.

EDIT

The suggested "simple" Diff-in-Diff would look something like this: equation

Would it be ok for the control group (replicated=0), to have a 0 in the post_rep column? while only the treated group (replicated=1) does have 0 and 1? Would it make sense to make such an analysis?

$\endgroup$
5
  • $\begingroup$ You should write up a regression equation for clarity and to help yourself to gain clarity. Define the variables in the regression equation clearly. Maybe start as simple as with one paper en control group and one paper in treatment. .... Asking whether you are doing something completely wrong is not the best question. When is something completely wrong ... I think you need focus. Doing something simple is usually helpful for gaining focus (as your advisor suggested). $\endgroup$ Commented Jul 14 at 14:53
  • $\begingroup$ The treated will be 1 in months after treatment otherwise 0. Control is always 0. But since the staggered design is a weighted average of all the different treatment timing groups .. so good idea to focus on on group ... $\endgroup$ Commented Jul 14 at 15:00
  • $\begingroup$ Thank you for your comments. I included an edit with the "simple" diff in diff model. With regards to your second comment, isn't it an issue that my control is always 0 in the before and after? I'm very new to this and that's why I'm a bit lost $\endgroup$ Commented Jul 15 at 21:35
  • 1
    $\begingroup$ Ok thank you for writing the equation. Yes, there is a problem. Easy to fix. I can write an answer later today. $\endgroup$ Commented Jul 16 at 6:12
  • $\begingroup$ Hi Jesper, I haven't found a way to properly solved this, I was wondering if you could let me know you're idea. Thank you $\endgroup$ Commented Jul 21 at 13:53

1 Answer 1

2
$\begingroup$

Assume you have a dataset $\{Y_{it},X_{it},D_{it}\}$ where $Y_{it}$ is the dependent variable, $X_{it}$ are control variables and $D_{it}$ is an indicator which for observational unit $i$ is equal to $1$ for all $t \geq t^\star_i$ and $0$ for all $t<t^\star_i$, where $t^\star_i$ is the time period where unit $i$ receives treatment.

We then assumed that there would be no dropout of treatment after receiving it (in the diff-and-diff literature this is referred to as treatment being an absorbing state).

In the simple diff-and-diff you have a control group that never receives treatment $D_{it}=0$ for all $t$ for all $i \in \mathcal G_c$ where $\mathcal G_c$ is the group of observational units in the control group. And a group $\mathcal G_{t^\star}$ of observational units that are treated at time $t^\star$.

In this case you can simply regress

$$(1) \ \ \ Y_{it} = \delta_t + \mu_g + \lambda D_{it} + \beta X_{it} + \epsilon_{it},$$

where $\delta_t$ is time fixed effects and $\mu_g$ are group fixed effects.

It would help if you played around with these simple diff-and-diff setups. This will give you a feel about how data is behaving. Also, it will allow you to experiment with constructing $\mathcal G_c$ in different ways.

You can perfectly well estimate equation (1) with several groups that are treated at different times. There is no post_rep variable whose definition depends on the non-ambiguity of treatment timing. Instead, the specification uses time dummies.

However, estimating (1) has been criticized in a newer strand of diff-and-diff literature. The specification imposes that (a) all units have the same treatment effect, and (b) the treatment has the same effect regardless of how long it has been since treatment started. You can have a look at this review paper:

What’s Trending in Difference-in-Differences? A Synthesis of the Recent Econometrics Literature

These slides explain simple 2x2 diff and diff and then go on to the literature on staggered diff-and-diff

Diff-and-diff slides

The short story is that I cannot tell you what to do if you don't buy the assumptions (a) and (b) because in that case there are multiple ways to move on. However, the simplest way of allowing for treatment heterogeneity is simply to run simple diff-and-diff specifications for the different treated groups whose treatment you believe to be different.

You can always raise a new question once you have mastered the basics.

$\endgroup$
3
  • $\begingroup$ Thank you very much for your answer, now it's much more clear for me. One last question, is there a way to plot this model? (from my understanding, this would be a generalized DiD). Or, should I have to do an Event study and plot that? $\endgroup$ Commented Jul 29 at 15:24
  • 1
    $\begingroup$ I think you could learn a lot by doing event study plots. Especially if you do event study plots and see how they vary according to how you design the control and treatment group. So do event study plot using (1) different control groups but holding the treatment group constant and (2) Different treatment groups but holding the control group constant. I would go with event study plots. It should also be possible to use the FWL theorem to do advanced event-study plots where you first filter for the control variables. Consider posting a question on this. $\endgroup$ Commented Jul 29 at 17:42
  • 1
    $\begingroup$ Ok, you have already posted on CrossValidated. I wish you luck. $\endgroup$ Commented Jul 29 at 17:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.