Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Outreg2 Results in a loop?

    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.

    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
    }

  • #2
    try without option replace

    Comment

    Working...
    X