may not be the best place to submit this question, but for anyone who is Stata-savvy please feel free to contribute to this problem:
I need to run a logistic regression (mlogit) command on a set variable against all other variables in my data set, one by one. In other words, I need to write a macro in Stata that will execute something of the following:
> mlogit var1 var2, baseoutcome(0)
> listcoef #designated for previous test
> mlogit var 1 var 3, baseoutcome (0)
> listcoef
etc. etc.
In each test, the independent variable is changed out whereas the dependent variable is constant.
Any ideas for a macro that would accomplish this task?
I need to run a logistic regression (mlogit) command on a set variable against all other variables in my data set, one by one. In other words, I need to write a macro in Stata that will execute something of the following:
> mlogit var1 var2, baseoutcome(0)
> listcoef #designated for previous test
> mlogit var 1 var 3, baseoutcome (0)
> listcoef
etc. etc.
In each test, the independent variable is changed out whereas the dependent variable is constant.
Any ideas for a macro that would accomplish this task?