Dear Statalist,
I have some categorical variables, for example bmi_cat (BMI category) : 1=low, 2=normal, 3=high. I have the dependent variable dep_var as 0, 1.
I want to run the logistic regression of dep_var on bmi_cat where bmi_cat = 1 will be the reference category, and I want to use stepwise method.
I am getting an error after running this
sw, pe(0.2): logistic dep_var i.bmi_cat
The error is
factor variables and time-series operators not allowed
r(101);
Is there any other way?
Thank you in advance.
Related Posts with Logistic Regression with Categorical Independent Variables using Stepwise Method
Differing results with stepwise regression (& categorical predictors)Hi, I am having trouble interpreting the results of my logistic regression analysis. I am running …
Moderated Mediation in Panel Data analysisHi everyone, Please, can anyone guide me on conducting a moderated mediation model using panel data?…
Plot graph of multiple categorical variables (with sub-categories) across outcome variableDear all, I more than two categorical variables with two sub groups in each. I want to graph them o…
marker label values in twoway mataHi When I run the code Code: sysuse auto, clear summarize price mata: mean = st_numscalar("r(m…
ppml_panel_sg: "r(2000) no observations" error after 10 iterationsHello everyone, I'm currently working with a balanced panel dataset on bilateral exports at the sec…
Subscribe to:
Post Comments (Atom)
0 Response to Logistic Regression with Categorical Independent Variables using Stepwise Method
Post a Comment