0

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?

Thankyou

Nick Cox
  • 48,377
  • 8
  • 110
  • 156
sarah
  • 1
  • 1
  • 1
  • Readers here might also be interested in reading the following thread: [correlation-between-dichotomous-and-continuous-variable](http://stats.stackexchange.com/questions/25229/). – gung - Reinstate Monica May 05 '13 at 15:30

1 Answers1

1

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.)

Nick Cox
  • 48,377
  • 8
  • 110
  • 156