Hello,
I kindly ask your assistance on exporting results from a loop into matrix to be finally exported to word.
I want to do a bivariate regression, where one outcome variable is regressed against each of the exposure variables separately to create unadjusted odds ratio. I want to do this for four different surveys (four years).
the loop looks like this:
Thank you.
I kindly ask your assistance on exporting results from a loop into matrix to be finally exported to word.
I want to do a bivariate regression, where one outcome variable is regressed against each of the exposure variables separately to create unadjusted odds ratio. I want to do this for four different surveys (four years).
the loop looks like this:
Code:
forvalues i=1/4 { foreach var of varlist v106_new v025 adolescent_age_F media_new husband_edu_new v190 region_f religion_f women_occupation husband_occupation wantedness_child birthor swpatt3gr swpsoc3gr { svy:logit skilled_delivery i.`var' if survey==`i', or } }
Comment