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 (July 2003)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 24 Jul 2003 12:26:53 -0400
Reply-To:   Art@DrKendall.org
Sender:   "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:   "Arthur J. Kendall" <Art@DrKendall.org>
Organization:   Social Research Consultants
Subject:   Re: How to create to random groups.
Comments:   To: Martin Sherman <MSherman@loyola.edu>
Content-Type:   text/plain; charset=us-ascii; format=flowed

try something like this untested syntax.

compute randnum = rv.uniform(0,1). sort cases by randnum. compute ranorder = $casenum. execute. recode ranorder (1 thru 6 =1)(7 thru 12=2) (else=3) into mygroup. value labels mygroup 1 'first group' 2 'second group' 3 'residual'.

Hope this helps.

Art Art@DrKendall.org Social Research Consultants University Park, MD USA (301) 864-5570

Martin Sherman wrote: > Dear list: I have 36 subjects from which I want to randomize 12 of > them into two groups (six in a group). Does anyone know the > programing that I could use to accomplish this. thanks, martin > > Martin F. Sherman, Ph.D. Professor of Psychology Loyola College 222 B > Beatty Hall 4501 North Charles Street Baltimore, MD 21210 > > 410 617-2417 (Office) 410 617-5341 (FAX) msherman@loyola.edu >


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