Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: How to drop some Observation in Stata, if they are out of range?


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: How to drop some Observation in Stata, if they are out of range?
Date   Tue, 23 Sep 2008 10:31:18 +0200

The -drop- part is low hanging fruit. Just

drop if earnings<min | earnings>max


The thing I do not quite get is what you want to do with the -drop-ped
variables...

HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of bumbuminc
Sent: Tuesday, September 23, 2008 10:20 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: How to drop some Observation in Stata, if they are out of
range?

Hi, there
I want to drop some Observations in Stata, who are out of a certain range.
For example: I have 2 variables, the first one is an identnumber and
the second one are the earnings.
Now I want Stata to drop all the Observation who are under a minimum
earning and all who are over a maximum earning and save this under a
new variable.
 In the moment i can't figure it out by myself.
Hopefully someone can help me.
Boris
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index