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
Fixed effect or first differencegen gr_rate = D.lnuclms reg lnunclms ez y1982-y1988 Given this model, either the within transformati…
Reshape data to long - no stub, time in long formatDear all, I have a dataset in a bit oddly shaped. The time (the data is hourly for 30 years) is alr…
-margins- . *(not estimable)Hi folks, I could not get outputs after -margins. Following are estimations followed by -margins- o…
multicollinearity check for logistic regression including binary and categorical variablesHey everyone, i have to analyse panel data for my thesis. I use Stata version 15.1. I chose the log…
Shifts when laying multiple histogramsHi, I would like to generate one histogram which have three graphs covering on the others. The thre…
Subscribe to:
Post Comments (Atom)
0 Response to Draw vertical line in coefplot
Post a Comment