Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: overlapping confidence bands with point estimates


From   andreas nordset <[email protected]>
To   [email protected]
Subject   st: overlapping confidence bands with point estimates
Date   Sun, 28 Nov 2010 21:43:25 -0800

Dear Listers.

I am trying to plot two sets of coefficients, together with their
confidence bands over a period of years.
The first two parts of the command below gives me the two confidence
bands, where as the last two parts adds the point estimates.

-twoway rarea max95 min95 year || rarea max95_dsu min95_dsu year ||
tsline estimate || tsline estimate_dsu-


The problem with this plot, is that when the confidence bands overlap,
Stata uses "last shown, first seen". Rather than overwriting the first
CI-band with the second for the area of overlap, I would like to
highlight the overlap.

The command -drarea- (by Adrian Mander) almost does this, but the
command does not allow me to add the point estimates to the graph.

That is, when I do:
-drarea max95 min95 max95_dsu min95_dsu year-

I get a (nice) graph, which highlights where the CI bands are
overlapping by mixing the colors.
I am however not able to combine this plot with the point estimates as
"drarea is not a twoway plot type".

Does anyone know a way around this?

Best

Andreas
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index