Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Dropping variables with all observations missing


From   Ian Watson <[email protected]>
To   Kim Gradel / Aalbog Sygehus <[email protected]>
Subject   Re: st: Dropping variables with all observations missing
Date   Tue, 10 May 2005 15:48:06 +1000

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/



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