How do you calculate a correlation, that similar to Spearman and Pearson forumlar when you are only comparing one variable (age) to answer given by yes and no. As ages goes up more likely to answer yes. Is this possible?



You could code yes-no as 1, 0 (or any other integers) and then use standard formulas and software.

Whether that's any use will depend on your data and your problem.

I'd calculate fraction yes for each age and then plot against age. Some kind of smoother may help if patterns are not obvious.

Two wild guesses are that

  1. Spearman correlation will make more sense

  2. some kind of logit model with yes and no as response will be deeper yet, statistically and scientifically. (That's especially true if you have other variables.)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.