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 (March 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 4 Mar 2008 18:23:52 -0600
Reply-To:   "data _null_," <datanull@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "data _null_," <datanull@GMAIL.COM>
Subject:   Re: Monte Carlo and Proc SurveySelect macro loop
Comments:   To: maryidahosas <maryidahosas@yahoo.com>
In-Reply-To:   <b6ef7d99-2b48-4919-80ef-54827426c93d@u10g2000prn.googlegroups.com>
Content-Type:   text/plain; charset=ISO-8859-1

I don't think you are going to be happy waiting for your program to finish with 118 PROC SURVEYSELECTS plus the other bits putting the data back together and whatever else needs to be done. I think you should back up and lets figure out a way to create data so that you can get all the samples in one call to surveyselect.

Can you supply some sample data. The have and need scenario works well on SAS-L. Perhaps the sample data from your first post. Plus a mock up what you need from surveyselect.

I have been trying to understand your proceess but I could not follow the process in the first post.

Perhaps the answer is in the Cassell paper.

On Tue, Mar 4, 2008 at 2:31 PM, maryidahosas <maryidahosas@yahoo.com> wrote: > I am trying to get a monte carlo process working to build some > coincidence factors by number of customers. I have had success in > getting Proc SurveySelect to process the replications, but I still > need my surveyselect to process several times with different > sampsize . My code is below. I tried the macro loop for the > processing, but it resolves before the survey select even operates, so > it only processes for the J=End valuse of 118. Is there an easy way > to execute this looping.?? Thanks for your help. > Mary > > > /*************************************************/ > %LET BEGIN = 1; > %LET END = 118; > %macro surv; > %Do J = &begin %to &end; > proc surveyselect data=mg1.resjul07bins > out=mg1.sample1 > method=pps > sampsize=&j > rep=3 > seed=1; > size binwidth; > run; > %end ; > %mend surv; > > %surv > run; >


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