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
|