Statalist The Stata Listserver


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

st: two STATA questions


From   "Ni Frank" <frankflying03@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: two STATA questions
Date   Mon, 26 Feb 2007 20:11:15 -0500

Hi, I have two basic questions on STATA.
1) There are 50 varialbes, w05100, w05200,....,w10000. We want to DROP those obversations for which at least one of the above variables takes value of 0. When I use "drop if w*==0, it said "W* invalid name". Does anybody know what's wrong?

2) Now, if we want to KEEP those obersvations for which at least one of the variables w05100, w05200, ....,w09900 takes value of 0. How to do that?

Thanks a lot!

_________________________________________________________________
享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com
*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index