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
Empty string in macroIs there any way to get an empty string recognized as a word in a macro? The idea is a macro (call i…
How to test goodness of fit in multinomial logistic regression having used the subpop rather than sub sample optionoptionHow do I test the goodness of fit for multinomial logistic regression, having used the subpop option…
Unified preference configuration file across nodes on unix systemI'm using Stata 16 MP GUI with a network license on RHEL. I am connected to that system using MobaXt…
Get words from a list if they contain a given substringI have a set of filenames in a list like Code: local files "a.dat b.dat c.dat d.xlsx e.dat f.xlsx"…
Creating a Propensity Score Robustness Check TableHi, Does anyone know if there's a way to create a table like the attached image of different propen…
Subscribe to:
Post Comments (Atom)
0 Response to Draw vertical line in coefplot
Post a Comment