0
$\begingroup$

I am interested between the correlation between a continuous variable and a binary variable (female=1/male=2).

I think it doesn't really make sense to calculate it like this:

cor.test(data$continuousvariable,data$binaryvariable)

Is correlation only used for two continous variables? What should I do?

$\endgroup$
2

0