A matrix version of cor.test()

后端 未结 5 1111
有刺的猬
有刺的猬 2020-11-27 03:23

Cor.test() takes vectors x and y as arguments, but I have an entire matrix of data that I want to test, pairwise. Cor() t

5条回答
  •  感情败类
    2020-11-27 04:00

    "The accepted solution (corr.test function in the psych package) works, but is extremely slow for large matrices."

    If you use ci=FALSE, then the speed is much faster. By default, confidence intervals are found. However, this leads to a slight slowdown of speed. So, for just the rs, ts and ps, set ci=FALSE.

提交回复
热议问题