Hello everyone,
I have a question regarding backward stepwise regression.
My dependent variable is a binary variable.
My independent variable is a categorical variable.
Variables A and B are included in these model (1 of them is categorical)
This is my STATA command.
-. stepwise, pr(.1) pe(0.05): clogit dependantvariable i.indepedantvariable i.variableA variableB, group(pairID)or iterate(20)-
However, “factor variables and time-series operators not allowed” appears as the output when the command was applied.
May I know how to proceed with this and how to carry out backward stepwise regression when using categorical independent variables?
Thank you. Any help is appreciated
I have a question regarding backward stepwise regression.
My dependent variable is a binary variable.
My independent variable is a categorical variable.
Variables A and B are included in these model (1 of them is categorical)
This is my STATA command.
-. stepwise, pr(.1) pe(0.05): clogit dependantvariable i.indepedantvariable i.variableA variableB, group(pairID)or iterate(20)-
However, “factor variables and time-series operators not allowed” appears as the output when the command was applied.
May I know how to proceed with this and how to carry out backward stepwise regression when using categorical independent variables?
Thank you. Any help is appreciated
Comment