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