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: graph serrbar - selecting cases


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: graph serrbar - selecting cases
Date   Wed, 20 Nov 2013 17:04:16 +0000

That is an -if- condition, e.g.

sort rank

and select

... if _n <= 200 | _n >= <whatever>
Nick
[email protected]


On 20 November 2013 16:48, Barbara Romano <[email protected]> wrote:
> Dear all,
> I’m using a serrbar graph to represent residuals an se after performing multilevel regression with “mixed” (stata 13).
> I ranked it based on the random estimate for the fixed part (_cons)
>
> serrbar u2 s2 rank, yline(0) ylabel(-1.6 -1.0 -.5 0 .5 1 1.6 2.1) xlabel(1(25)101)
>
>
> Since I’ve about 8,000 2nd level observations the graph is a little bit messy.
> How can I select only some observation e.g.: the first 200 and the last 200 observations of the rank variable?
>
> thank you very much
> Barbara
>
>
>
>
>
>
> *
> *   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/

*
*   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