Skip to content

Incorrect handling of NA's in cor() (PR#6750)

1 message · msa@biostat.mgh.harvard.edu

#
Full_Name: Marek Ancukiewicz
Version: 1.8.1
OS: Linux
Submission from: (NULL) (132.183.12.87)


Function cor() incorrectly handles missing observation with method="spearman":
[1] -0.1428571
[1] -0.4

These two results should be the same.