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 (April 1996, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 30 Apr 1996 14:27:00 PDT
Reply-To:     Fry Chris <chris@EMAIL.DFI.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Fry Chris <chris@EMAIL.DFI.COM>
Subject:      Re: saving corr. coeff. as a variable

I've done this before, but don't have the code handy. You can use the output statement in proc corr to put the correlation matrices into a dataset. Then, do a summary on this dataset, with a subsetting "if" to make sure you are only looking at one observation per correlation value, to get the average corr.

Chris Fry chris@dfi.com ---------- From: owner-sas-l To: Multiple recipients of list SAS-L Subject: Re: saving corr. coeff. as a variable Date: Tuesday, April 30, 1996 12:47PM

9449673@NESSIE.CC.WWU.EDU writes:

>I AM WONDERING IF SAS WILL ALLOW ME TO SAVE A BIVARIATE CORRELATION >COEFFICIENT AS A NEW VARIABLE. I KNOW THAT IT CAN SAVE PREDICTED AND >RESIDUAL SCORES, AND WILL SAVE THE RESULTING CORR. MATRIX. HOWEVER, WHAT >I AM DOING IS COMPUTING A LARGE NUMBER OF CORRELATIONS FROM A POPULATION, >AND TAKING THE AVERAGE OF THEM. I WOULD LIKE TO BE ABLE TO DO THIS WITHOUT >HAVING TO COMPUTE THE AVERAGE BY HAND. DOES ANYONE KNOW IF SAS CAN >ACCOMPLISH THIS?

YES.


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