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: Dopping 1% observations, but numbers do not match
From
"Miguel Angel Duran" <[email protected]>
To
<[email protected]>
Subject
st: Dopping 1% observations, but numbers do not match
Date
Wed, 10 Apr 2013 12:22:48 +0200
Will you please help me to know that what I am doing is right? To eliminate
outliers, I am trying to drop 1% of the observations with the lowest values.
To do so I use 'bysort entity (rcon1410a): drop if rcon1410a[_N] <=
0.0388193'. Note that 'entity' is id, 'rcon1410a' is the relevant variable,
and 1% of the observations has a value that is lower than 0.0388193 (this
value is obtained from 'sum rcon1410a, detail'). Since I have 415,000
observations, I should be dropping 1%*415,000=4,150. Nevertheless, Stata
informs me that using the abovementioned command I have dropped 400
observations. Is this all right? Thanks in advance.
Miguel Angel.
*
* 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/