| ![]() |
From | "Michael Blasnik" <michael.blasnik@verizon.net> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: Re: Re: na.omit synonym |
Date | Wed, 20 Jun 2007 09:38:18 -0400 |
...I have no knowledge of R, but it sounds like this is one (of many) ways to get what you want:
gen byte touse=1
markout touse var1 var2 var3
will create a variable named touse which contains 1s for cases with no missing values in var1, var2, or var3, and zeros otherwise. You can then use -if touse- after most commands or just -drop if touse- to actually drop them from the dataset.
Michael Blasnik
----- Original Message ----- From: "bunny , lautloscrew.com" <bunny@lautloscrew.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Wednesday, June 20, 2007 7:41 AM
Subject: st: na.omit synonym
HI everybody,
i have several non-response in my dataset that are coded -1 .
i�d like to drop any observation (row) where one or more columns contains a -1.
* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/
© Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |