Date: Mon, 12 May 2003 18:07:12 -0400
Reply-To: Peter Fagan <email@example.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Peter Fagan <firstname.lastname@example.org>
Subject: Re: New Var from 3 vars
Content-type: text/plain; charset=US-ASCII
Thanks, Bob. Transformation worked first time.
Peter J. Fagan, Ph.D.
Associate Professor of Medical Psychology
Johns Hopkins University School of Medicine
Tel: 410 424-4958
Personal Fax: (same as telephone number)
Johns Hopkins HealthCare
6704 Curtis Ct.
Glen Burnie, MD 21060
*Important: If you choose to send confidential information via
please be advised that the security of electronic mail cannot be
Similarly, delivery of electronic mail is also not guaranteed.
Therefore, if you
do not receive a timely response from me, please contact me through the
phone number listed above.
>>> email@example.com 05/12/03 06:00PM >>>
Unless I'm misunderstanding you, this should suffice...
IF (VAR1 = 16 OR VAR2 = 16 OR VAR3 = 16) NEWVAR = 1.
RECODE NEWVAR (1=1) (ELSE=0).
Surveys & Forecasts, LLC
|From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf
|Sent: Monday, May 12, 2003 5:50 PM
|Subject: New Var from 3 vars
|The solution offered by Jim Marks to James Moffitt recently should
|enabled me to solve this, but I have not be able. So....
|If any of three existing vars has the value of 16, I would like to
|create a new var that would have value of "1" if 16 was present in
|one of the three, or "0" if absent.
|Thanks in advance.
|Peter J. Fagan, Ph.D.
|Associate Professor of Medical Psychology
|Johns Hopkins University School of Medicine
|Tel: 410 424-4958
|Personal Fax: (same as telephone number)
|Johns Hopkins HealthCare
|6704 Curtis Ct.
|Glen Burnie, MD 21060
|*Important: If you choose to send confidential information via
|please be advised that the security of electronic mail cannot be
|Similarly, delivery of electronic mail is also not guaranteed.
|Therefore, if you
|do not receive a timely response from me, please contact me through
|phone number listed above.