Dear community,
I want to do a plot that shows the coefficients for the same variable but estimated with 5 different models. I include code for a reproducible example with 3 different models here:
This yields:




However, I want the coefficients and confidence intervals nicely spread over the whole range of the x-axis and I want each of them labelled with the name of the estimation model on the x-axis.
Is this possible with coefplot?
Best
Noemi
I want to do a plot that shows the coefficients for the same variable but estimated with 5 different models. I include code for a reproducible example with 3 different models here:
Code:
use "http://fmwww.bc.edu/RePEc/bocode/e/EXAMPLE_TRADE_FTA_DATA" , clear egen imp = group(isoimp) egen exp = group(isoexp) preserve keep if category == "MANUF" ppmlhdfe trade fta, a(imp#year exp#year imp#exp) cluster(imp#exp) estimates save model1, replace restore preserve keep if category == "NONMANUF" ppmlhdfe trade fta, a(imp#year exp#year imp#exp) cluster(imp#exp) estimates save model2, replace restore preserve keep if category == "TOTAL" ppmlhdfe trade fta, a(imp#year exp#year imp#exp) cluster(imp#exp) estimates save model3, replace restore estimates use model1.ster estimates store model1 estimates use model2.ster estimates store model2 estimates use model3.ster estimates store model3 coefplot model1 model2 model3, /// keep(fta) /// xline(0) /// ciopts(recast(rcap) color(blue)) /// msymbol(O) /// ytitle("Coefficient of lndistw") /// xtitle("Model") /// xlabel(1 "sector1" 2 "sector2" 3 "sector3" , angle(0) labsize(medium)) /// vertical ///
However, I want the coefficients and confidence intervals nicely spread over the whole range of the x-axis and I want each of them labelled with the name of the estimation model on the x-axis.
Is this possible with coefplot?
Best
Noemi
Comment