0

I have two categorical variable and I would like to check if this two variables have correlation.

Is the right option to use spearman rho coefficient correlation?

The levels for one are 4 and for the other variable are 5.

I used Spearman's correlation coefficient rho with p-value < 0.05 to accept the null hypothesis which shows the correlation. Is it the right option?

Example of data

va1 var2
0    2
1    1
2    3
2    1
0    2
1    3 
kjetil b halvorsen
  • 63,378
  • 26
  • 142
  • 467
foc
  • 101
  • 4

0 Answers0