Output of aldex.corr function has column r . However, the contents of the column is "t statistics" of cor.test function, and it should be "r estimate".
So, code of aldex.corr should be changed as follows.
from
r <- sapply(cors, getElement, "statistic")
to
r <- sapply(cors, getElement, "estimate")
Hello
Output of aldex.corr function has column r . However, the contents of the column is "t statistics" of cor.test function, and it should be "r estimate".
So, code of aldex.corr should be changed as follows. from r <- sapply(cors, getElement, "statistic") to r <- sapply(cors, getElement, "estimate")
daichi