|
Try... (untested--doesn't account for missing values).
If (max(visit1 to visit12)=0) voutcome=0. If (max(visit1 to visit3)=1) voutcome=1. If (max(visit4 to visit12)=1) voutcome=2. The only question I have is if a record has visits in 1-3, but also in 4-12--do you want these coded as 2 (as this syntax would do) or do you want some other outcome?? Melissa -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of daniel s kim Sent: Tuesday, October 23, 2007 2:03 PM To: [hidden email] Subject: [SPSSX-L] Newbie question: creating a reporter variable Hi all, first time posting to the list - hopefully I'll learn a lot from all of you ! Here's the situation: I'm attempting to combine about 12 visit variables into three outputs: 0, 1, 2. The 12 variables are binary reporting, either 0 or 1. The 0 value would account for cases where during all 12 visits, the output was 0. The 1 value would account for cases when there was a "1" reported for ANY of the first 3 visits. The 2 value would account for cases when there was a "1" reported AFTER the 3 visit mark. Whether this is 1 event or 9, it doesn't matter. That all said... I'm having trouble figuring out the syntax or drop-down commands to accomplish this coding. I realize this is probably a huge newbie question, but I am very much at a loss and would appreciate any help that could be given. Thank you very much for your time and understanding! Dan Sincerely, Daniel S. Kim ([hidden email]) Department of Bioengineering University of Washington ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD PRIVILEGED AND CONFIDENTIAL INFORMATION This transmittal and any attachments may contain PRIVILEGED AND CONFIDENTIAL information and is intended only for the use of the addressee. If you are not the designated recipient, or an employee or agent authorized to deliver such transmittals to the designated recipient, you are hereby notified that any dissemination, copying or publication of this transmittal is strictly prohibited. If you have received this transmittal in error, please notify us immediately by replying to the sender and delete this copy from your system. You may also call us at (309) 827-6026 for assistance. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
