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
Missing valuesHello, fellow stata lovers!
I am working on my thesis and have a dataset from the Enterprise Survey…
Esttab: Store value of matrix and display in tex-tableDear All,
I am encountering the following issue. I want to compute a mean after a regression with t…
keep the last observation(s) in each yearDear All, Suppose that the data set is
Code:
* Example generated by -dataex-. To install: ssc insta…
loop for missing valuesHi everyone! I am trying to complete a database in form of a "tree", adding as values the last avail…
R2 for xtnbreg modelHello everyone,
i am currently analyzing a count variable with the -xtnbreg- command.
This command …
Subscribe to:
Post Comments (Atom)
0 Response to Logistic Regression with Categorical Independent Variables using Stepwise Method
Post a Comment