Hi Mosi,
You could use the -missing- function:
. sysuse auto
. drop if mi(make, price, mpg, rep78)
This will make your syntax somewhat shorter.
Cheers,
SOS
On Mon, 2009-12-14 at 10:30 -0600, Mosi Ifatunji wrote:
> Friends,
>
> 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,
>
> Mosi
>
*
* 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/