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 (June 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sun, 24 Jun 2007 19:39:14 -0400
Reply-To:   "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Subject:   Re: Correlation at the country level

On Sun, 24 Jun 2007 12:35:25 -0400, John James <free562james@YAHOO.COM> wrote:

>I have a country-year dataset including data on a number of countries for a >number of years. I want to compute the correlation coefficient between two >variables at the country level. Is it possible to do that use proc corr in >sas?

Make sure your data set is sorted by country, then include

by country;

in the PROC CORR step.


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