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 (July 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 10 Jul 2007 15:06:28 -0400
Reply-To:   L Hoopes <lhoopes@YAHOO.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   L Hoopes <lhoopes@YAHOO.COM>
Subject:   Matrix Multiplication

Hi, I was looking for help with SAS IML and found the group SAS-L.

I have unbalanced repeated observations data. Say for example, n1 measurements for one subject, n2 measurements for a different subject and so on. Two covariates X1 X2 are measured on each subject, which is a matrix of the dimension equal to the corresponding number of repeated observations on each subject by 2.

Part of my data is:

ID Wgt X1 X2 1 45 7 0.5 1 47 5 0.3 1 47.5 5 0.3 1 47 7 0.6 2 53 8 0.6 2 50 8 0.7 2 51 9 0.8 3 46 10 1 3 46 8 0.9 3 49 9 1 3 51 11 1.1 3 51.5 11 1.2

I want to perform the matrix multiplication of X'XY where X is a matrix with two columns X1, X2 and Y the Wgt response vector, of one ID. I want to perform this multiplication and sum over all the IDs.

Can I get some help....

Thanks, L Hoopes


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