Hi guys,
I’m running regressions using the reghdfe command, and I want to plot the coefficients. 2007 is the intervention year. My codes are as below:
reghdfe `X' i.treatment_adj##ib(2007).year, absorb( global_id year) vce(cluster global_id)
coefplot, vertical drop(_cons) keep(1.treatment_adj*) yline(0) rename(^.*([0-9]+)([0-9]+)([0-9]+)([0-9]+).*$ = \1\2\3\4, regex) title("`X'_2000data_2007b_sample1_FE")
In the coefficient plots, I want to include a vertical line of the intervention year (2007). I know the code for doing this is “xline”, but I had troubles in incorporating the xline code together with the coefficient plot code. When I add xline(2007), the vertical line is not drawn correctly in 2007 location
coefplot, vertical drop(_cons) keep(1.treatment_adj*) yline(0) rename(^.*([0-9]+)([0-9]+)([0-9]+)([0-9]+).*$ = \1\2\3\4, regex) title("`X'_2000data_2007b_sample1_FE")
Do you know how to fix it?
Thank you in advance.
Hut98
Related Posts with Draw vertical line in coefplot
Why does the number of observation differ after the PSM estimation?I used attnd command to estimate nearest-neighbor matching. Then, I got the result as follows. *AT…
HeteroscedasticityDear Statalists, I ran a fixed effects model and obtained nice significant results, but after aplyi…
Interrupted time series analysis with differing effect on specific subgroupsHi, I would like to perform an interrupted-time-series analysis to assess the impact of a policy on…
mixed Command; Using Random Intercept as a Control variablHi. I am using mixed modeling for my multilevel data across countries, industries, and firms. I need…
Modifying Ben Jann's "appendmodels" program for different commands.Hello, I am using Ben Jann's appendmodels program which can be found here. The program works perfec…
Subscribe to:
Post Comments (Atom)
0 Response to Draw vertical line in coefplot
Post a Comment