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 (September 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 21 Sep 2007 13:52:49 -0400
Reply-To:     Sophia Tong <sophidt@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Sophia Tong <sophidt@HOTMAIL.COM>
Subject:      How to randomly divide sample in 2 groups

Dear all, I have 400 people in a pool, want to randomly assign them into 2 groups, 200 each without any restrictions. What's right way of doing it?

I have tried somthing like

DATA want; SET have; SEED=339487731; R=RANUNI(SEED); R2=ROUND(1+R); RUN;

But the R2 won't give me 200/200. Please help.

Thanks,

Sophia


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