Date: Tue, 7 Aug 2007 13:25:49 -0700
Reply-To: "Nordlund, Dan (DSHS/RDA)" <NordlDJ@DSHS.WA.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Nordlund, Dan (DSHS/RDA)" <NordlDJ@DSHS.WA.GOV>
Subject: Re: bootstrap simulation
In-Reply-To: <1186516855.003590.216620@r34g2000hsd.googlegroups.com>
Content-Type: text/plain; charset=iso-8859-1
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On
> Behalf Of Song
> Sent: Tuesday, August 07, 2007 1:01 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: bootstrap simulation
>
> Hi All,
>
> I have the following code:
>
> /********************************************/
> data example;
> do i = 1 to 10;
> group1 = rannor(0);
> output;
> end;
> keep group1;
> run;
>
>
> data boot;
> do sample = 1 to 10;
> do i = 1 to nobs;
> x = round(ranuni(0) * nobs);
> set example
> nobs = nobs
> point = x;
> output;
> end;
> end;
> stop;
> run;
> /*****************************************/
>
> What I would like to do is simulate my rannor data multiple times and
> perform a bootstrap to each of those simulated dataset. Can anyone
> suggest how I might be able to combine the two data step into one with
> the additional simulation variable?
>
Song,
You can't do better than to take a look at this paper. You can get it from Lex Jansen's site, http://www.lexjansen.com/sugi/
Paper 183-2007
Don't Be Loopy: Re-Sampling and Simulation the SASŪ Way
David L. Cassell, Design Pathways, Corvallis, OR
Hope this is helpful,
Dan
Daniel J. Nordlund
Research and Data Analysis
Washington State Department of Social and Health Services
Olympia, WA 98504-5204
|