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 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 11 Jul 2005 13:13:19 -0400
Reply-To:     Fred <ieaggie2002@gmail.com>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Fred <ieaggie2002@GMAIL.COM>
Subject:      How to create a TABLE in SAS?
Content-Type: text/plain; charset=ISO-8859-1

Hi, I have two datasets A and B with n and m columns, respectively. That is Dataset A: a1 a2 a3 .... an 10 22 14 .... 5 12 21 7 ... 24 ... Dataset B: b1 b2 ... bm 29 3.8 ... 6 7.5 2.9 .... 5.1 ....

I need to calculate the correlation between ai and bj (a=1, ...,n; b=1, ..., m), then i have n*m correlation coefficients. To provide an intuitive output, I would like to create a nxm table such that its n rows correspond to A and m columns correspond to B, each cell of the table records the corresponding correlation coefficient.

Anybody can tell me how to achieve this or give me a point.

Thanks for your any help.

Fred


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