Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[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" <>
To   <>
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:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index