Date: Tue, 7 Aug 2007 13:19:46 -0700
Reply-To: Paige Miller <paige.miller@KODAK.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Paige Miller <paige.miller@KODAK.COM>
Organization: http://groups.google.com
Subject: Re: bootstrap simulation
In-Reply-To: <1186516855.003590.216620@r34g2000hsd.googlegroups.com>
Content-Type: text/plain; charset="us-ascii"
On Aug 7, 4:00 pm, soun...@yahoo.com wrote:
> 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?
I think you create a data step with three DO loops. I don't see why it
should be anything more complicated than that.
--
Paige Miller
paige\dot\miller \at\ kodak\dot\com
|