Statalist


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

st: replace loop over var w/ if


From   John Bunge <jota.be@web.de>
To   statalist@hsphsun2.harvard.edu
Subject   st: replace loop over var w/ if
Date   Sun, 22 Feb 2009 04:19:46 +0100

i have 3 variables called v1d, v2d, v3d which all equal to .

moreover i have 3 variables a1, a2, a3 which equal to . or some numerical value

i want
replace v1d = 1 if a1 ~=.
replace v2d = 1 if a2 ~=.
replace v3d = 1 if a3 ~=.

how can i do this in 1 command? with forvalue?

____________________________________________________________________
Psssst! Schon vom neuen WEB.DE MultiMessenger gehört? 
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index