I am trying to investigate the correlation values. A big problem happens. The method I used is in corpcor package in R. I have a column as missing data. I firstly calculate the correlation matrix.
cluster1corMatrix<-cor(cluster1Analytes,method="spearman")
Then I get a correlation matrix. when I did partial correlations using cor2pcor functions as follows, I got a big problem.
## 80th column and 80th row are all NAs.
cluster1corMatrix<-cluster1corMatrix[-80,]
cluster1corMatrix<-cluster1corMatrix[,-80]
### the above delete the missing value column
cluster1PcorMatrix<-cor2pcor(cluster1corMatrix)
Most of the correlation become negative. More importantly, some correlations, for instance, 0.9 correlation becomes -0.91 in partial correlation.
The method I used is in corpcor package in R (https://cran.r-project.org/web/packages/corpcor/index.html).
Can anyone comment on that? Is it reasonable to change correlation of 0.9 to -0.9 in partial correlation?