Hi,
In this previous post https://www.statalist.org/forums/for...egression-loop , I asked how to create a forest plot for regression coefficients and was successful. But I'd like to know how I can present values on the outside of the graph rather than inside it. I've tried several commands from the website, but they don't work for me.
This an example of the data:
Then I have used this code:
And the result in attachment.
So I'm looking for a graph that includes:
1- values in a separate column next to the names of the outcomes
2- Sort the graph's coefficient values ascendingly.
3- I want the values' colors to be black.
In this previous post https://www.statalist.org/forums/for...egression-loop , I asked how to create a forest plot for regression coefficients and was successful. But I'd like to know how I can present values on the outside of the graph rather than inside it. I've tried several commands from the website, but they don't work for me.
This an example of the data:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str14 outcome float(coef se ci_l ci_u) "S" -1.4595655 .14353406 -1.741194 -1.1779372 "M" -1.4105432 .167224 -1.7386538 -1.0824327 "A" 1.2288225 .18672407 .8624509 1.595194 "C" 1.0382018 .18100072 .6830601 1.3933436 "B" 1.0915558 .19679554 .7054231 1.4776887 "D" -1.0109191 .18807442 -1.3799403 -.641898 end
Code:
*EXTRACT RESULTS TO MATRIX mkmat coef ci_l ci_u, mat(res) rownames(outcome) *GRAPH USING COEFPLOT FROM SSC *ssc install coefplot, replace set scheme s1color mat res= res' coefplot mat(res), ci((2 3)) xline(0) mlab(@b) mlabpos(1)
So I'm looking for a graph that includes:
1- values in a separate column next to the names of the outcomes
2- Sort the graph's coefficient values ascendingly.
3- I want the values' colors to be black.
Comment