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 (September 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 14 Sep 2010 08:04:58 -0500
Reply-To:     "Data _null_;" <iebupdte@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Data _null_;" <iebupdte@GMAIL.COM>
Subject:      Re: how to generate 1 to 100k random numbers without zeros?
Comments: To: John Whittington <John.W@mediscience.co.uk>
In-Reply-To:  <5.1.0.14.2.20100914134618.03bbc860@193.189.74.23>
Content-Type: text/plain; charset=ISO-8859-1

PROC PLAN does not really do random sampling. It can be used that way but it is not as easy as a data step. Or better still SURVEYSELECT.

Plus way back when PROC PLAN did not even have an OUTPUT statement. It's function has been significantly enhanced recently.

So even my simple example of permuting 100,000 integers and creating a SAS data set was not directly obtainable with PROC PLAN before the enhancements.

On 9/14/10, John Whittington <John.W@mediscience.co.uk> wrote: > At 07:06 14/09/2010 -0500, Data _null_; wrote: > > Do you mean a version of SAS before PROC PLAN was available? > > > > I'm pretty sure I used PROC PLAN in SAS version 76 in 1979 when I > > started using SAS. I'm just a kid compared to you old timers :-) > > > > Yes, that's what I meant, but my SAS experience does not go back any earlier > than yours. There was certainly a time when I was unaware of PROC PLAN, and > therefore did such things with DATA step code but, judging by what you say, > I guess that may have been due to my ignorance about the availability of > PROC PLAN, rather than it's true non-availability! > > Having said that, unless I dreamed it all, I do recall a fair bit of traffic > on SAS-L and elsewhere (I think even in SI publications) regarding various > 'hard-coded'' methods of getting random samples without replacement, which > would seem odd if PROC PLAN was available at the time (at least, to those > with SAS/STAT - maybe that was the issue?). > > > Kind Regards, > > > John > > ---------------------------------------------------------------- > Dr John Whittington, Voice: +44 (0) 1296 730225 > Mediscience Services Fax: +44 (0) 1296 738893 > Twyford Manor, Twyford, E-mail: John.W@mediscience.co.uk > Buckingham MK18 4EL, UK > ---------------------------------------------------------------- > >


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