Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: Dropping variables with mostly missing values again

From   "Eric M. Uslaner" <>
To   "" <>
Subject   st: Dropping variables with mostly missing values again
Date   Sat, 8 Feb 2014 02:00:28 +0000

Thanks to Rich, Amirsa, Jeph, and Nick.  It is likely my ignorance but I can't get this resolved.  For the solutions of Rich, Amirsa, and Jeph, I get all missing values.  For Nick's suggestion, I have:

foreach V of varlist elecprod1750-visitorrooms2003 {
	keep `r(`V')' 

And I see the npresent results as he suggested.  But the do file  I constructed above after the last variable leads to:

varlist or in range required

end of do-file


And no values are changed.  What, please, am I doing wrong?  Thanks.


*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index