Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cor.mtest produces wrong p-values for Spearman with pairwise.complete.obs and missing data #271

Open
jukop opened this issue Aug 25, 2023 · 1 comment

Comments

@jukop
Copy link

jukop commented Aug 25, 2023

Hello,

I encountered the issue in the headline. I was able to produce correct p-values using psych::corr.test. My first quess is that denominator is n which is taken from dimension of the matrix but not as number of pairs which were acceptable due to missing values.

@cejourci
Copy link

My problem as well. I can't find any spesification of test statistics underlying cor.mtest (pearson, spearman etc.) and missing-method (pairwise complete obs vs complete obs) so I can't trust corrplot to produce correct p-values for the correlation matrix coefficients. Will try the psych corr.test, but hope that mtest can function with more detail!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants