Hi,
I am trying to outreg2 results from loop regression. However, only the regression shopping_decision gets exported to excel. The esttab option works fine but I am trying to get it into excel.
I am trying to outreg2 results from loop regression. However, only the regression shopping_decision gets exported to excel. The esttab option works fine but I am trying to get it into excel.
Code:
eststo clear foreach i of varlist purchase_decision child_wedding_decision shopping_decision { eststo `i': qui reg `i' own_tv age agesq i.religion i.education i.head_education i.newspaper i.radio i.household_expenditure_quintile, vce(cluster IDPSU) outreg2 `i' using "DecisionMaking_OLS.xls", replace }
Comment