|
Hi all,
I have 150 patients each of will be assigned to 2 treatments (TX1, TX2). My
goal is to compute a list that randomly assigns each patient a 1 or a 2 for
each treatment. The result would look like this:
ID TX1 TX2
1 1 2
2 2 1
3 2 1
4 1 2
....where the 1 and the 2 are randomly generated by SPSS. Patient 1 would
have Treatment 1 1st followed by Treatment 2. Patient 2 is in the opposite
order.
I have tried computing TX1 using one of the random number functions but the
key is that if 1 is assigned to TX1 then 2 has to be assigned to TX2 and
vice versa.
This seems really simple but I'm not sure of how to go about doing this.
Ideas?
Thanks
Carol P
Sacramento CA
|