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
recursive weighted meanDear All, I find this question here (in Chinese). Suppose the data set is Code: * Example generated…
Convert tabs to spaces in results windowHello everyone, I have the habit of inserting tabs in my code to facilitate readability. Apparently,…
New versions of xlink and ipwbreg on SSCThanks as always to Kit Baum, new versions of the xlink and ipwbreg packages are now available for d…
Graphing Coefficients From an LPMI'm using the following code to estimate an LPM and the effect of the treatment and interacted varia…
I am looking for "Local_Authority_Districts_December_2016_Full_Clipped_Boundaries_in_Great_Britain.zip” file, Can you help?I want to study spatial measurement analysis with stata, but I cann't find the above sample data for…
Subscribe to:
Post Comments (Atom)
0 Response to Logistic Regression with Categorical Independent Variables using Stepwise Method
Post a Comment