我用proc corr得到下面的表格,并用ods output导出到work里的表格里:
Pearson Correlation Coefficients
Prob > |r| under H0: Rho=0
Number of Observations
Age Weight Oxygen RunTime
Age 1.00000 -0.23354 -0.31474 0.14478
0.2061 0.0963 0.4536
31 31 29 29
Weight -0.23354 1.00000 -0.15358 0.20072
0.2061 0.4264 0.2965
31 31 29 29
Oxygen -0.31474 -0.15358 1.00000 -0.86843
0.0963 0.4264 <.0001
29 29 29 28
RunTime 0.14478 0.20072 -0.86843 1.00000
0.4536 0.2965 <.0001
29 29 28 29
我现在只想保留相关系数的数据,去掉p-value和number of observation的数据,并做成下面的这种格式:
couple of variables corr
Age*Weight -0.23354
Age*Oxygen -0.31474
Age*RunTime 0.14478
... ...
每一对变量名不要重复。
请问哪位高人能给个提示或者给个code?
谢谢啦


雷达卡



京公网安备 11010802022788号







