我rcorr()在R中使用函数建立两个不同矩阵之间的相关性:
rcorr()
res <- rcorr(as.matrix(table1), as.matrix(table2),type="pearson")
它似乎工作正常,但我想避免表内相关 - 任何建议?
r correlation
correlation ×1
r ×1