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 (October 1998, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 1 Oct 1998 16:58:38 -0700
Reply-To:   "Berryhill, Timothy" <TWB2@PGE.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   "Berryhill, Timothy" <TWB2@PGE.COM>
Subject:   Re: random sample selection
Comments:   To: "MelliJ@AOL.COM" <MelliJ@AOL.COM>
Content-Type:   text/plain

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 >


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