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: Keep/Drop Observations for Top/Bottom X%
From
"Justina Fischer" <[email protected]>
To
[email protected]
Subject
Re: st: Keep/Drop Observations for Top/Bottom X%
Date
Thu, 11 Oct 2012 11:40:35 +0200
Hi Lisa
you can use the sum command (and its options, e.g. 'detail') for finding the cutt-off values for the lowest and highest 10% in the distribution.
HTH
Justina
-------- Original-Nachricht --------
> Datum: Thu, 11 Oct 2012 20:34:01 +1100
> Von: Lisa Wang <[email protected]>
> An: [email protected]
> Betreff: st: Keep/Drop Observations for Top/Bottom X%
> Hi all,
>
> I am unsure as to how I would go about keeping or dropping the
> top/bottom X% of observations of a variable. I would like to do this
> for further analysis on a subset of my data. For instance, I want to
> do some further regressions for the top 10% of my observations based
> on 'distance from home' and not the whole data set.
>
>
> Thank you,
> Lisa
> *
> * 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/