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]

Re: st: Re: How do I bring the fitted line upfront in graph


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: How do I bring the fitted line upfront in graph
Date   Fri, 4 Jan 2013 03:16:08 +0000

You should plot -fpfit- lines on top.

Nick

On Thu, Jan 3, 2013 at 10:36 PM, Amy Hsin <hsin.amy@gmail.com> wrote:
>> 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))
*
*   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/


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