Statalist


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

st: Drop variables satisfying a condition


From   "Guillermo Villa" <[email protected]>
To   <[email protected]>
Subject   st: Drop variables satisfying a condition
Date   Fri, 6 Jul 2007 14:32:51 +0200

> Dear statalisters,
>
> I wonder whether it is possible to drop several variables in a dataset
> specifying an "if" condition. For instance, it would be interesting
> being able to drop all variables in the dataset for which all cases
> are 0 or missing values. I have been reading the help documentation on
> the "drop" command, however I am unable to find the right answer so
> far. Note that I want to drop variables and not cases.
>
> Thanks in advance.
>
> Guillermo
>
>

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index