Check out -dropmiss- (findit dropmiss)
Monday, April 25, 2005, 8:33:21 PM, you wrote:
KGAS> Dear Stata-listers,
KGAS> After having merged and reshaped a few datasets I ended up with a
KGAS> dataset of 150 observations and 955 variables. I want to drop the
KGAS> numerous variables that have only missing observations. It's tedious to
KGAS> look through all these variables to find those with 150 missing
KGAS> observations, and I wonder if there is a short and conveniant command
KGAS> related to "drop" or "keep" that I can use to drop all variables where
KGAS> all observations are missing.
KGAS> Best regards,
KGAS> Kim
KGAS> Kim O. Gradel
KGAS> DVM, PhD, clinical assistant
KGAS> Department of Clinical Epidemiology
KGAS> Aalborg Hospital Nord
KGAS> Stengade 10, 2. floor
KGAS> 9100 Aaalborg, Denmark
KGAS> Phone, direct: +45 99 32 10 94
KGAS> Fax: +45 99 32 10 88
KGAS> E-mail: [email protected]
KGAS> *
KGAS> * For searches and help try:
KGAS> * http://www.stata.com/support/faqs/res/findit.html
KGAS> * http://www.stata.com/support/statalist/faq
KGAS> * http://www.ats.ucla.edu/stat/stata/
*
* 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/