Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Dropping variables with mostly missing values again
From
"Eric M. Uslaner" <[email protected]>
To
"[email protected]" <[email protected]>
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 {
npresent,min(20)
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
r(100);
end of do-file
r(100);
And no values are changed. What, please, am I doing wrong? Thanks.
Ric
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/