Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to define gvar in csdid for event study with repeated cross-sections?

    Hi, I’m using csdid with repeated cross-sectional data (Peru, 2008–2016) to estimate the effect of an education reform.

    Only public schools are treated, and all of them start being treated in 2014. Private schools are never treated.

    I defined:


    Code:
    gen g = .
    replace g = 2014 if treatment == 1
    replace g = 0 if treatment == 0
    I don’t use ivar(), since I don’t have consistent unit IDs over time.

    Where treatment = 1 for public schools and 0 for private schools (controls)
    My goal is to produce an event-study graph.
    One issue I’m facing is that when using estat event, the year before treatment (2013) is not omitted — I expected it to be the reference period (t = -1).
    Is this definition of gvar valid for csdid, or is there a better way to do this without a true panel structure?

    Thanks in advance!!!!!!
    Click image for larger version

Name:	Picture1.png
Views:	1
Size:	36.4 KB
ID:	1776057

    Click image for larger version

Name:	Picture2.png
Views:	1
Size:	74.7 KB
ID:	1776058

    Last edited by Sebastian Moncada; 15 Apr 2025, 13:06.
Working...
X