Error in match.arg(alternative) FOR CORRELATION TEST

Hi! I am trying to use use the correlation function in R studio by using the pearsons method but this coding error keeps on appearing: Error in match.arg(alternative) : **
** 'arg' must be NULL or a character vector

this is the coding:

cor.test(analysis$art, analysis$SNP500, method=c("pearson"), conf.level=0,95, use="complete.obs")

thank you in advance!

typo alert.
conf.level=0,95 != conf.level=0.95

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.