Dear Statalister.
I want add confidence interval lower/upper value on marginsplot.
To be more specific, I want to add [3.324] and [3.823] beside CIplot on bar(X=1) .
Is it possible? How can I do this?
My do file is
qui:reg Y i.X
margins X
marginsplot, plot1opts(mlabel(_margin) mlabpos(1) mlabcolor(black) mlabformat(%9.3f)) ///
title("X on Y") xtitle("X") ytitle("Y") ///
recast(bar) plotopts(barw(.5)) ci1opt(color(black))
| Delta-method
| Margin std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
X |
1 | 3.57377 .1258284 28.40 0.000 3.324276 3.823265
2 | 4.78125 .1737275 27.52 0.000 4.43678 5.12572
3 | 2.777778 .3275838 8.48 0.000 2.12824 3.427316
4 | 2.666667 .5673917 4.70 0.000 1.541634 3.7917
5 | 3.2 .4394997 7.28 0.000 2.328553 4.071447

I want add confidence interval lower/upper value on marginsplot.
To be more specific, I want to add [3.324] and [3.823] beside CIplot on bar(X=1) .
Is it possible? How can I do this?
My do file is
qui:reg Y i.X
margins X
marginsplot, plot1opts(mlabel(_margin) mlabpos(1) mlabcolor(black) mlabformat(%9.3f)) ///
title("X on Y") xtitle("X") ytitle("Y") ///
recast(bar) plotopts(barw(.5)) ci1opt(color(black))
| Delta-method
| Margin std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
X |
1 | 3.57377 .1258284 28.40 0.000 3.324276 3.823265
2 | 4.78125 .1737275 27.52 0.000 4.43678 5.12572
3 | 2.777778 .3275838 8.48 0.000 2.12824 3.427316
4 | 2.666667 .5673917 4.70 0.000 1.541634 3.7917
5 | 3.2 .4394997 7.28 0.000 2.328553 4.071447
Comment