LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (April 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 9 Apr 2003 13:08:26 -0500
Reply-To:     "Smith, Curtis, Mr, DCAA" <Curtis.Smith@DCAA.MIL>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Smith, Curtis, Mr, DCAA" <Curtis.Smith@DCAA.MIL>
Subject:      Re: Sampling Question
Content-Type: text/plain; charset="us-ascii"

Of course, proc surveyselect assumes you have SAS/STAT licensed, while using ranuni does not. Some of us are poor boys.

-----Original Message----- From: Mark T. [mailto:stats@CONSULTANT.COM] Sent: Wednesday, April 09, 2003 10:54 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Sampling Question

If you want to do that without replacement, do the following:

proc surveyselect data = yourdata method = SRS rep = 1 sampsize = 500 seed = 12345 out = wor; id _all_; /* or use you id */ run;

If you want to do that with replacement:

proc surveyselect data=yourdata method = urs sampsize = 500 rep=1 seed=12345 out=wr; id _all_;/* or use you id */

run;

wollo_desse@HOTMAIL.COM (Action Man) wrote in message news:<F101Ov0Hvk1wPVElaVv00020439@hotmail.com>... > Hi Fellow SAS users; > > I have 7,000 records in my SAS file. Out of these records I want to > pick 500 of them randomly, How do I do that using SAS. > > Thank you in advance. > > Wollo > > > _________________________________________________________________ > Help STOP SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail


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