Statalist


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

Re: st: how to select all the numerical variable


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   Re: st: how to select all the numerical variable
Date   Sat, 20 Jun 2009 16:04:31 +0200

<>

Quite apart from the main discussion here, the "for" construct is out of date, and I do not recall Martin B. saying anything about his using Stata 8 or earlier. Use -forvalues- or -foreach- instead as shown in my earlier post...



HTH
Martin
_______________________
----- Original Message ----- From: "Roy Wada" <[email protected]>
To: <[email protected]>
Sent: Saturday, June 20, 2009 2:43 PM
Subject: RE: st: how to select all the numerical variable


Is there any way that I can select all the numerical variable
in a dataset? For example, I want to use:

for var equity net_income cash_fixinv : replace X=. if X==0.0001

You can just put a cap on it.

for var _all : cap replace X=. if X==0.0001

Roy

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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