EXCEL spearman秩相关系数
EXCEL如何计算spearman秩相关系数,结果与统计学软件SPSS、STATA、SAS一致
操作方法
- 01
打开EXCEL,从A1开始编辑,举例10组,B、C列可以更改数据
- 02
E2输入 =IF(AND($B2<>"",$C2<>""),COUNTIF($B:$B,"<"&B2)+(1+COUNTIF($B:$B,"="&B2))/2,"") E3输入 =IF(AND($B3<>"",$C3<>""),COUNTIF($B:$B,"<"&B3)+(1+COUNTIF($B:$B,"="&B3))/2,"") 下拉到E11 F2输入 =IF(AND($B2<>"",$C2<>""),COUNTIF($C:$C,"<"&C2)+(1+COUNTIF($C:$C,"="&C2))/2,"") F3输入 =IF(AND($B3<>"",$C3<>""),COUNTIF($C:$C,"<"&C3)+(1+COUNTIF($C:$C,"="&C3))/2,"")
- 03
J2输入 =CORREL(E2:E16369,F2:F16369)
赞 (0)