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 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: Doaa <>
In-Reply-To:   <>
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 <> 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; >

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