LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2001)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 17 Dec 2001 15:32:28 -0800
Reply-To:   "Parise, Carol A." <PariseC@sutterhealth.org>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:   "Parise, Carol A." <PariseC@sutterhealth.org>
Subject:   Assign treatment order
Content-Type:   text/plain; charset=us-ascii

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


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