| Date: | Wed, 9 Apr 2003 10:53:35 -0700 |
| Reply-To: | "Mark T." <stats@CONSULTANT.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Mark T." <stats@CONSULTANT.COM> |
| Organization: | http://groups.google.com/ |
| Subject: | Re: Sampling Question |
| Content-Type: | text/plain; charset=ISO-8859-1 |
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
|