【SAS NOTES】proc corr 检验变量相关性

1 ods graphics on;

2 proc corr data=mysas.mmstwo plots=(scatter matrix);

3     var wangnei;

4     with wangjian;

5 run;

【SAS NOTES】proc corr 检验变量相关性

The SAS System 17:32 Saturday, February 14, 2009 39

The CORR Procedure

1 With Variables: wangjian
1 Variables: wangnei


Simple Statistics

Variable N Mean Std Dev Sum Minimum Maximum

wangjian 48 850062 518837 40802988 241673 1998261
wangnei 48 8135197 1872001 390489465 5611877 13050028


Pearson Correlation Coefficients, N = 48
Prob > |r| under H0: Rho=0

wangnei

wangjian 0.63163
<.0001(假设检验,在H0为两变量不相关的概率小于万分之一,因此两变量相关,相关系数为0.63)

可以设定检验方法,包括spearman hoeffding kendall

proc corr spearman;

你可能感兴趣的:(proc)