Programming the statistical procedures from SAS

Can i do cross-sectional correlation using proc corr?

Reply
N/A
Posts: 0

Can i do cross-sectional correlation using proc corr?

Hi

Since i have a data in the table like:

firm return lag_return
aa 200 .
aa 190 200
aa 180 190
bb 30 .
bb 40 30
bb 50 40
cc 9 .
cc 10 9
cc 11 10

I use proc corr to do a correlation between those variable as code below but the result seems to be wrong because it is cross-sectional correlation. I just wonder whether my procedure is correct or not? if not, how can i do a cross-sectional correlation using proc corr to come out with only one correlation matrix?

proc corr nomiss;
var return lag_return;
run;

Thanks in advance.
Ask a Question
Discussion stats
  • 0 replies
  • 66 views
  • 0 likes
  • 1 in conversation