Hello! I am writing because I would like to plot just a specific number of pre/post periods, but csdid_plot does not allow me. This is my code:
csdid centers_child gdp_pc edu pop nat, ivar(code) time(year) gvar(treatment) agg(event) long2 method(reg)
matrix att = e(b)
matrix V = e(V)
eststo att
esttab att using "$outputpath/figures/CHECKS/centers_child_cs.tex", tex replace
estat event, window(-8,8) plot
csdid_plot, style(rcap) pstyle(p1) graphregion(fcolor(white)) plotregion(fcolor(white)) title("ATT on Centers per Child", color(black))
csdid centers_child gdp_pc edu pop nat, ivar(code) time(year) gvar(treatment) agg(event) long2 method(reg)
matrix att = e(b)
matrix V = e(V)
eststo att
esttab att using "$outputpath/figures/CHECKS/centers_child_cs.tex", tex replace
estat event, window(-8,8) plot
csdid_plot, style(rcap) pstyle(p1) graphregion(fcolor(white)) plotregion(fcolor(white)) title("ATT on Centers per Child", color(black))
Comment