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 (February 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 12 Feb 2007 10:30:18 -0500
Reply-To:     "data _null_;" <datanull@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "data _null_;" <datanull@GMAIL.COM>
Subject:      Re: Sampling in SAS
Comments: To: Syb it <sas_datalover@yahoo.com>
In-Reply-To:  <77544.47260.qm@web62212.mail.re1.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

SURVEYSELECT is a good choice if you have SAS/STAT software.

data work.aFewThousand; do I = 1 to 2e3; output; end; run; proc surveyselect seed = 205872001 /* use a different number */ method = srs /* Simple Random Sampling */ data = work.afewthousand out = work.OneHundred n = 100 ; run; proc print; run;

On 2/12/07, Syb it <sas_datalover@yahoo.com> wrote: > How does one generate a random sample in SAS? LEts say you had a couple thousand observations but one only wanted 100 randomly selected from the bigger database? Any clues? > > > --------------------------------- > 8:00? 8:25? 8:40? Find a flick in no time > with theYahoo! Search movie showtime shortcut. >


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