Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: if vx==1 (replace v1=1 if v1 is missing, otherwise replace v2=1 ... : how do i do this?


From   "Paul O'Brien" <paul.obrien@afe2.org.uk>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: if vx==1 (replace v1=1 if v1 is missing, otherwise replace v2=1 ... : how do i do this?
Date   Wed, 25 May 2011 19:57:23 +0100

i cannot think how to do this in Stata:

if vx==1 (replace v1=1 if v1 is missing, otherwise replace v2=1 if v2 is missing, otherwise replace v3=1).

thanks for any help you can give.

paul





*
*   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   |   Site index