Hi,
I would like to ask if it is possible to create a forest plot for the effect size after running a regression loop for multiple outcomes. I have used the command below, which I found in this question. https://www.statalist.org/forums/for...egression-loop.
And after this command I got something like this:

So how can I create a forest plot after getting this result?
I want the forest plot to include the names of the outcomes and the coefficient value on the y-axis.
I would like to ask if it is possible to create a forest plot for the effect size after running a regression loop for multiple outcomes. I have used the command below, which I found in this question. https://www.statalist.org/forums/for...egression-loop.
Code:
frame create results_NProt_Pulse_Velocity frame results_NProt_Pulse_Velocity { set obs 1000 gen outcome= "" gen coef=. gen SE=. gen pvalue=. gen ci_l=. gen ci_u=. } local counter 0 foreach outcome of varlist CHIP-C34_HIV_F { regress `outcome' PulseWaveVelocity Age sq_age if r(table)[4, 1] < 0.05{ local ++counter frame results_NProt_Pulse_Velocity { replace outcome= "`outcome'" in `counter' replace coef= `=r(table)[1, 1]' in `counter' replace SE= `=r(table)[2, 1]' in `counter' replace pvalue= `=r(table)[4, 1]' in `counter' replace ci_l= `=r(table)[5, 1]' in `counter' replace ci_u= `=r(table)[6, 1]' in `counter' } } } frame change results_NProt_Pulse_Velocity drop if missing(outcome) browse
And after this command I got something like this:
So how can I create a forest plot after getting this result?
I want the forest plot to include the names of the outcomes and the coefficient value on the y-axis.
Comment