LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 1998, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 10 Nov 1998 12:36:44 +0000
Reply-To:   Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Subject:   Re: INPUT-Problem (simple?)
In-Reply-To:   <910696021.2125998.0@vm121.akh-wien.ac.at>

In article <910696021.2125998.0@vm121.akh-wien.ac.at>, Christian F. G. Schendera <cschende@IX.URZ.UNI-HEIDELBERG.DE> writes >Hi SAS-wizards, >A friend of mine as a little problem. She read in her data really just like >below, but afterwards she detected that she has to combine the variables >SEX1--SEX6 zu one variable GENDER with six levels. Any ideas? How assigning >a label to GENDER? >TIA, Chris > >data TEST; >input ID SEX1 SEX2 SEX3 SEX4 SEX5 SEX6 ; >cards; > 1 1 1 1 0 1 0 > 2 1 1 1 0 0 0 > 3 1 1 1 1 0 0 > ; >run;

doesn't 6 true/false values combine to 2**6 values like sex = sex1 + 2*( sex2 + 2*( sex3 + 2*( sex4 + 2*( sex5 + 2*( sex6 ))))); That could distinguish any combinations of sex1 -sex6

but rather than 6 levels, it has 2**6 levels = 64 levels ?

would that be OK ? -- Peter Crawford


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