data persons ; |
input x y @@; |
cards; |
2 400 4 360 7 300 1 295 6 280 |
3 350 10 200 9 260 8 220 5 385 |
; |
proc corr data=persons outs=rst spearman; |
var x; |
with y; |
run; |
Correlation Analysis 1 'WITH' Variables: Y 1 'VAR' Variables: X Simple Statistics Variable N Mean Std Dev Median Minimum Maximum Y 10 95.000000 67.905163 102.500000 0 200.000000 X 10 5.500000 3.027650 5.500000 1.000000 10.000000 Spearman Correlation Coefficients / Prob > |R| under Ho: Rho=0 / N = 10 X Y 0.73333 0.0158 |
我用以上程序求Spearman相关系数和P值。在output窗口可以看到P值的存在。但是输出到rst数据集就只有Spearman相关系数,没有P值,请问怎么把P值也放到rst数据集里?
谢谢!