Hello,
a medical statistic problem for me:
- a discrete outcome variable - alive - 1/0
- multiple groups, which I created by binning a continuos variable per percentiles (0-25,25-50,50-75,75-100)
- for each group, I created a specific column (0-25, 25-50, 50-75, 75-100) which is again 1/0
my problem:
I want to set all the patients in group 1 (0-25) as a baseline group and compare each individual (25-50, 50-75,75-100) to the baseline group (0-25) and subsequently calculate OR in relation to the baseline group (0-25) - example attached.
Patient | Outcome | 0-25% | 25-50% | 50-75% | 75-100% |
A | 1 | 0 | 1 | 0 | 0 |
B | 1 | 1 | 0 | 0 | 0 |
C | 1 | 0 | 0 | 1 | 0 |
D | 0 | 0 | 0 | 0 | 1 |
E | 0 | 1 | 0 | 0 | 0 |
Many thanks for your help and ideas ! Marc