LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2003)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 12 May 2003 18:07:12 -0400
Reply-To:     Peter Fagan <pfagan@jhmi.edu>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Peter Fagan <pfagan@jhmi.edu>
Subject:      Re: New Var from 3 vars
Content-type: text/plain; charset=US-ASCII

Thanks, Bob. Transformation worked first time.

Peter

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 electronic mail, please be advised that the security of electronic mail cannot be guaranteed.

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 office phone number listed above.

>>> spss@surveys-forecasts.com 05/12/03 06:00PM >>> Peter,

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).

Bob Walker Surveys & Forecasts, LLC www.surveys-forecasts.com

|-----Original Message----- |From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of |Peter Fagan |Sent: Monday, May 12, 2003 5:50 PM |To: SPSSX-L@LISTSERV.UGA.EDU |Subject: New Var from 3 vars | |The solution offered by Jim Marks to James Moffitt recently should have |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 any |one of the three, or "0" if absent. | |Thanks in advance. | |Peter | |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 |electronic mail, |please be advised that the security of electronic mail cannot be |guaranteed. | |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 |office |phone number listed above.


Back to: Top of message | Previous page | Main SPSSX-L page