Statalist


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

RE: st: how to select all the numerical variable


From   Roy Wada <[email protected]>
To   <[email protected]>
Subject   RE: st: how to select all the numerical variable
Date   Sat, 20 Jun 2009 05:43:36 -0700

> 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/



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