so I was given a dataset and was asked to do the correlation test on its variable. while doing it there is this data called "smoker" which is categorical (between 0 and 1) and I was supposed to pair it with birthweight data which is numerical. I thought I should be using
cor.test(birthweight,smoker,method="Kendall")
for this instead of the normal spearman method. can anybody confirm this or am I mistaken?
thanks in advance