You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I perform a mantel_test analysis using the default parameters (mantel_fun = "mantel"), I am a little confused as to how the correlation r-values and p-values are calculated.
After checking the source code, I guessed that the Pearson was used. If so, I would like to know if other methods can be used to calculate the correlation, such as Spearman.
PS: I also tried adding "method='spearman'" to the mantel_test function, but the step ran for more than 2 hours with no results. On the contrary, without adding this parameter, it only took half an hour to complete.
Thanks in advance for your help!
Best!
xiaojjia
The text was updated successfully, but these errors were encountered:
xiaojjia
changed the title
what methods to calculate the correlation (r) and its p.value in Mantel_test()
what methods to calculate the correlation (r) and p.value in Mantel_test()
May 6, 2024
Yes, you can set method = "spearman" in mantel_test() function. I suggest setting mantel_fun argument to "mantel.randtest", and it's faster than "mantel".
Thanks for your great package!
When I perform a mantel_test analysis using the default parameters (mantel_fun = "mantel"), I am a little confused as to how the correlation r-values and p-values are calculated.
After checking the source code, I guessed that the Pearson was used. If so, I would like to know if other methods can be used to calculate the correlation, such as Spearman.
PS: I also tried adding "method='spearman'" to the mantel_test function, but the step ran for more than 2 hours with no results. On the contrary, without adding this parameter, it only took half an hour to complete.
Thanks in advance for your help!
Best!
xiaojjia
The text was updated successfully, but these errors were encountered: