I am new to STATA.
I know how to run logistic regressions individually and to predict values and residuals. I want to know how I can do this in a for loop.
If I have a y-variable and multiple x-variables, how can I run multiple Logistic regressions and predict the values and residuals. Specifically, how can I do the following in a loop:
logit y-variable x-variable1
predict values1
predict residuals1, res
logit y-variable x-variable1 x-variable2
predict values2
predict residuals2, res
logit y-variable x-variable1 x-variable2 x-variable3
predict values3
predict residuals3, res
logit y-variable x-variable1 x-variable2 x-variable3 x-variable4
predict values4
predict residuals4, res
Related Posts with For loop for running multiple regressions in Stata
Calculating probabilities for Multinomial Logit with Fixed Effects (femlogit)Dear Stata Gurus, I am using using the Multinomial Logit with Fixed Effects (femlogit) program to e…
Index of Net DifferencesHi, I am calculating Lieberson's Index of Net Differences in Stata: [ATTACH=CONFIG]temp_14048_1554…
Problem with triple difference-in-difference results and interpretationDear Statalist users, I am using a triple difference-in-difference strategy to try and establish th…
Testing for a Valid Instrumental VariableHi Statalisters, I am in the process of looking for a suitable instrument for gender inequality, as…
marginal results for melogitI am modeling a proportion (numerator/denominator where the denominator represents the number of tri…
Subscribe to:
Post Comments (Atom)
0 Response to For loop for running multiple regressions in Stata
Post a Comment