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 (June 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 9 Jun 2001 19:41:55 +1000
Reply-To:     dennis <dennis_grodsen@EKNO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         dennis <dennis_grodsen@EKNO.COM>
Organization: Customer of Telstra Big Pond Direct
Subject:      Re: Random Sample

Hey that is a pretty clever way of doing a random sample - have you ever tested this for true randomness?

I think that this has been a good week for my SAS tips library - i managed to update my skills in a few areas - even random sampling...

Dennis "Xiaoyuan" <zhux@FLCOURTS.ORG> wrote in message news:200106081508.f58F8xJ190542@listserv.cc.uga.edu... > Hi, > > Please try this simple way. You can get different sample every time. > ********************************************************************* > proc plan; > factors x=980 of 2000;***Seeds come from 49% of your observations; > output out=number; > run; > > data outfile; set "your import set" ; > y=_n_; > run; > > proc sql; > create table sample as > select * > from number, outfile > where number.x=outfile.y; > quit; > > data sample (drop=x y); set sample; > run; > ************************************************************************* > > Xiaoyuan > Florida Supreme Court


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