|
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 |
|
if sum(v1,v2,v3,v4,v5, ... v12)=0 cv=0.
if any(1,v1,v2,v3) cv=1. if cv~=1 & any(1,v4,v5, ... v12) cv=2. /* not sure if cv of 1 has priority. if not: if any(1,v4,v5, ... v12) cv=2 */ On 24/10/2007, at 5:03 AM, daniel s kim wrote: > 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 ===================== 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 |
