|
Melanie, If you have access to www.dejanews.com, you can search the
newsgroup (forum) comp.soft-sys.sas and find several excellent examples of
SAS programs for rough and exact samples with and without replacement.
> ----------
> From: Melanie Barish[SMTP:MelliJ@AOL.COM]
> Reply To: MelliJ@AOL.COM
> Sent: Thursday, October 01, 1998 4:06 PM
> To: SAS-L@UGA.CC.UGA.EDU
> Subject: random sample selection
>
> Hello everyone! Can anyone give me some suggestions as to the proper code
> for
> a random sample selection. Thus far, at the recommendation of a
> co-worker, I
> have used a ranuni command, followed by a data step with a retain
> statement.
> However, when attempting to select a 20% random sample, I am not getting
> exactly 20%. For instance, when I select 20% of a data set that contains
> 36
> observations, I get 9 observations. Thanks for the help...
>
> Melanie Barish
> Sr. Data Analyst
> IPRO
> Lake Success, NY
> MelliJ@aol.com
>
|