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: Re: How do I bring the fitted line upfront in graph
From
Amy Hsin <[email protected]>
To
[email protected]
Subject
st: Re: How do I bring the fitted line upfront in graph
Date
Thu, 3 Jan 2013 23:36:45 +0100
> I am trying to graph the following in Stata. The problem that I am
> encountering is that the shaded area associated with the CI of
> "whites" overlaps with the fitted line of "Asians" and therefore parts
> of the fitted line is obstructed. How do I make it so that this does
> not happen? I would like both the fitted lines in the foreground and
> the shaded areas to be in the background.
>
> I have tried reversing the order in which the lines are inputted but
> that creates even greater problems because the CI for Asians is so
> large that the line for Whites would not be visible.
>
> twoway (fpfitci c_lag_rability wave if asian [aw=weight], clcolor(red)
> clstyle(foreground)) ///
> (fpfitci c_lag_rability wave if !asian [aw=weight], clcolor(blue)
> clstyle(foreground))
>
> Thanks in advance.
>
> Amy
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/