Date: Mon, 26 Jan 2009 13:07:34 -0600
Reply-To: "./ ADD NAME=Data _null_;" <iebupdte@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "./ ADD NAME=Data _null_;" <iebupdte@GMAIL.COM>
Subject: Re: matrix vector
In-Reply-To: <b4f37249-5c6a-4589-acca-64feb12d4d52@p2g2000prn.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
J Function
creates a matrix of identical values
J( nrow<, ncol<, value>>)
On 1/26/09, hd <heenagd@gmail.com> wrote:
> On Jan 23, 3:31 pm, bgji...@GMAIL.COM (baogong jiang) wrote:
> > a=[1 2 3 4];
> > temp=[1,1,1];
> > b_temp=temp*a;
> >
> > b=b_temp`;
> >
> >
> >
> >
> >
> > On Fri, Jan 23, 2009 at 1:26 PM, hd <heen...@gmail.com> wrote:
> > > Hi,
> >
> > > I have a question on proc iml. I would like to know if I have a
> > > vector
> >
> > > a = [ 1 2 3 4]
> >
> > > and I want to produce this matrix
> >
> > > b =
> > > [1 1 1
> > > 2 2 2
> > > 3 3 3
> > > 4 4 4]
> >
> > > how do I do this?
> >
> > > Also how do I print the values on the log file
> >
> > > Any help is greatly appreciated.
> >
> > > Thanks
> >
> > --
> > Baoogng Jiang PH.D
> > Office of Outcome Research & Evaluation
> > University of Louisiana at Monroe- Hide quoted text -
> >
> > - Show quoted text -
>
> Appreciate your help.
> How do I create temp matrix of 1s if its a big matrix liek say 6x20?
> Thank you!
>
|