Good morning Stata community,
I am fully aware of the limitations of stepwise regression, but my boss asks me to run a backward stepwise regression on a stcox regression model. I am looking at the predictors of death for different diseases. However, my model includes both continous and categorical variables. I read many posts about that, especially this one:
http://www.statalist.org/forums/foru...es?view=stream
in which the person found a way to deal with stepwise regression because ALL his variables were categorical (he put -xi- in front of the command). I can't do what he did, because my variables, as I said, are continous and categorical. I couldn't find a post that deals with that exact problem
So, here is my formal question: is backward stepwise regression with a mix of continous and categorical variables completely impossible to do or is there a way?
Thank you very much for your answers,
JM
I am fully aware of the limitations of stepwise regression, but my boss asks me to run a backward stepwise regression on a stcox regression model. I am looking at the predictors of death for different diseases. However, my model includes both continous and categorical variables. I read many posts about that, especially this one:
http://www.statalist.org/forums/foru...es?view=stream
in which the person found a way to deal with stepwise regression because ALL his variables were categorical (he put -xi- in front of the command). I can't do what he did, because my variables, as I said, are continous and categorical. I couldn't find a post that deals with that exact problem
So, here is my formal question: is backward stepwise regression with a mix of continous and categorical variables completely impossible to do or is there a way?
Thank you very much for your answers,
JM
Comment