Relationship between a variable with categories and a variable with numbers?

In SPSS, is there a way to find out if there is a siginificant relationship between symptoms (on a scale from 0-3, with 3 = the worst) and hospital stay ("yes" or "no") are related?
Last edited:


Omega Contributor
What is your sample size and what are you trying to get out of this? Also, is data prospectively collected? Not sure about SPSS, but I would run logistic regression then calculate odds ratios for 1 v 0, 2 v 0, and 3 v 0, and correct the alpha level used in the confidence intervals associated with the odds ratios to address repeated testing and false discovery risk. Some people will report a trend in the ordinal group by also rerunning the model with 0-3 as a continuous variable.

You can use Poison regression to get the relative risks if you have prospectively collected data.



TS Contributor
@ Dason, yes it does. But it still has to be done so I would appreciate if someone could give me a helpful answer.
Well, there's someone who by his nickname insults what we care about here, and expects "helpful answers" in return.
Must be an... interesting... place where you learned how to communicate.

With kind regards

I would like to add that we don't know what variable is the "factor" and what is the "effect". Regression with symptoms as predictors and stay in hospital as dependent variable also can be made, it more simple for interpretation. I think, more appropriate method is Cochrane-Armitage test. It can't be done in SPSS directly, but if you familiar with SPSS syntax, you can calculate it.
See the page: