| Date: | Wed, 26 Mar 2008 11:53:43 -0500 |
| Reply-To: | "data _null_," <datanull@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "data _null_," <datanull@GMAIL.COM> |
| Subject: | Re: saving and opening data sets |
|
| In-Reply-To: | <01e5a1a7-50dc-4532-933c-14ee68a5dfa6@e23g2000prf.googlegroups.com> |
| Content-Type: | text/plain; charset=ISO-8859-1 |
Which matrix do you need to "output"? Is it X below.
Will REPLICATE be set to 1000 when you get this working as desired.
On Wed, Mar 26, 2008 at 10:35 AM, Doaa <d_faik@hotmail.com> wrote:
> i made a program on proc iml that generate a data from a multivariate
> normal distribution, that i will use in simulation study iwant to
> generate about 1000 data sets. i made it by loop statment but my
> problem now how to save each data set with a separeate name and how to
> reopen these data sets again . i think it is done by a loop but i
> don't know how to do it.please replay as sson as possible
> my code was
> PROC IML;
> do Replicate=1 to 10;
> seed=12345;
> p=3;
> n=40;
> h=((n-1)**2/n)* betainv(0.05,(p/2),((n-p-1)/2));
> m={1 4 2};
> s={ 1 .4 .16,
> .4 1 .4,
> .16 .4 1};
> u=ROOT(s);
> x=J(n,1,1)*m + NORMAL(J(n,p,seed))*u;
> end;
> run;
> quit;
>
|