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
the exponential model, using the NLS, poisson and gamma QML estimatorsDear all, I have a question related to the estimation of the exponential model. This is related to …
RescalingHi Statlist! Is there a way to rescale the x and y axis in order to show them in in Millions dollar…
Incidence rateDear All,ho I used survival analysis to estimate the incidence of mother-to-child transmission of HI…
Inquire about uniform random-number generationThe textbook (microeconometrics using stata) said, For reproducibility of results, however, it i…
Sampling using sample commandHello Everyone, I have a dataset which has data for 100 households from each of 3 cities. Further, …
Subscribe to:
Post Comments (Atom)
0 Response to For loop for running multiple regressions in Stata
Post a Comment