Search for question
Question

Use the outreg2-command to generate an Excel table called "2a" containing all results from the loops below. Do not report the constants in the output table.

/* Code:

*/ local Controls "i.country_survey left right male young children_dummy rich university_degree immigrant moved_up"

eststo clear

foreach var in budget_health budget_defense {

eststo: xi: reg `var' q1_to_q1 `Controls'

}

foreach var in budget_health budget_defense {

eststo: xi: reg `var' q1_to_q5 `Controls'

}

Fig: 1