[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Dropping all missing values

From   Jeph Herrin <>
Subject   Re: st: Dropping all missing values
Date   Mon, 14 Dec 2009 11:52:38 -0500

Others have made valuable points about the wisdom of what you
want to do, but if you insist, here's the briefest syntax:

 egen missings=rowmiss(_all)
 drop if missings>0


Mosi Ifatunji wrote:

I am at the final stage of dataset preparation and would like to
remove all missing values. I know that I can drop all missing values
with the following syntax:

drop x1 if == .
drop x2 if == .

But, because I am going to have quite a few variables in the final
dataset, I would prefer as short a command syntax as possible. Of
course the goals of such an exercise is to ensure that all of my
analysis for this study is based on the same cases.

Thank you so much,


*   For searches and help try:

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