hi all, when I want to calculate correlation by rcorr,the number of non coding is 23 and the number of coding is 634,R shows this warning message,what should I do?
res2=rcorr(coding,ncoding,type = "spearman")
Warning message:
In sqrt(npair - 2) : NaNs produced
I think because of Inequality of number of coding & noncoding there is this warning and for that reason I have NA at the end of correlation matrix,is it true?
When npair <2, R can't calculate the square root. This is likely caused by your input not being of adequate dimensions. Check dim(coding) and dim(ncoding).