I suspect you will have to provide more information, a concrete example if possible, to get an answer you can use. But I would suggest the following from your brief description: Your Y variable appears to be death/no death. More usually, the Y variable would be the time to death (a continuous variable). If you use a continuous variable, then you can create a column for the column mean time to death - by age, diagnostic category, gender, etc. - and use that as your response variable. It will then be an adjusted time. I suppose if you have your Y variable (death/no death) coded as 0,1, you could do the same thing, and then make it a nominal variable and use the logistic regression.