Announcement

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

  • Did_multiplegt using it with coefplot and changing reference group to t-1 on the graph

    Hello,

    I would like to plot the results from Did_multiplegt such that t-1 (lead1) is omitted on the graph.

    This is the code that I use
    Code:
    webuse set www.damianclarke.net/stata/
    webuse prop99_example.dta, clear
    egen state_id = group(state)
    did_multiplegt packspercapita state_id year treated, robust_dynamic dynamic(6) placebo(6) breps(100) cluster(state_id) seed(20) 
    event_plot e(estimates)#e(variances), default_look  ciplottype(rcap)  alpha(0.1) ///
        graph_opt(xtitle("Periods since the introduction of GNNT") ytitle("Average causal effect") ///
        title("de Chaisemartin and D’Haultfoeuille (2020).") xlabel(-6(1)6)) stub_lag(Effect_#) stub_lead(Placebo_#) together
    It produces the following graph:
    Click image for larger version

Name:	exam.png
Views:	1
Size:	59.7 KB
ID:	1665435


    However, I want to omit t-1 on the graph (i.e. use it as reference category). How to that?

    Second, can I actually store the coefficients somehow and use it with coefplot instead of event_plot ? Because it provides more flexibility.
Working...
X