I have three variables:
- cancer = 1 (they have cancer), 0 (no cancer)
- death = 1 (died), 0 (did not die)
- agegroup = 1, 2, 3, 4, 5 (depending on what age bracket they fall under.
I am trying to see if cancer status affects death in people of the above agegroups.
My code right now is:
PROC LOGISTIC data = dtanl.hivcancerdta order = data;
class agegroup (ref = "1");
model death01 = agegroup cancer/ expb;
ODDSRATIO agegroup / diff = all;
WHERE ALSO death01 ^= 9;
RUN;
The way I am interpreting the above model is "what is the likelihood of death in persons of a certain agegroup when controlling for cancer". Is this correct?