Hello. I am aiming to create a graph in Stata that displays two point estimates—corresponding to my variables Status and the interaction term StatusDistance —for each country. Additionally, I want these estimates, along with their confidence intervals, to be plotted on the x-axis, with each country represented on the y-axis.
My original idea is to use coefplot. However, after reading and creating my code using this reference: from https://repec.sowi.unibe.ch/stata/co...g-started.html, I am not sure if that command can be used to obtain what I would like to have.
This is the code I am using
And this is what I get:

However, I would like to reverse this, so that instead of having 'StatusNat' and 'StatusNat x DistanceF' on the y-axis, I want to have all my countries on the y-axis, with two point estimates for each country. Any ideas on how to achieve this with coefplot, or should I use another command?
My original idea is to use coefplot. However, after reading and creating my code using this reference: from https://repec.sowi.unibe.ch/stata/co...g-started.html, I am not sure if that command can be used to obtain what I would like to have.
This is the code I am using
Code:
levelsof iso3, local(countries) foreach c of local countries { reghdfe identity Status StatusDistance if iso3 == "`c'", abs(XXX) cluster(XXXX) estimates store country_`c' } coefplot (country_BEN, label(Benin) pstyle(p3)) /// (country_GHA, label(Ghana) pstyle(p4)) /// , drop(_cons) xline(0) msymbol(S)
However, I would like to reverse this, so that instead of having 'StatusNat' and 'StatusNat x DistanceF' on the y-axis, I want to have all my countries on the y-axis, with two point estimates for each country. Any ideas on how to achieve this with coefplot, or should I use another command?
Comment