Dear all,
I already found the command for regressing by year ( I use a logit function) and then outreg2 it. Though it still only shows the last estimate....
levelsof year, local(years)
local estimates_list
foreach y of local years {
logit A170 i.X047 log_pcBIP i.sex i.age_recoded i.kids i.health_status if year == `y', vce(robust) or
estimates store e_`y'
local estimates_list `estimates_list' e_`y'
}
outreg2 `estimates_list' using "xxx", eform cti(OR)
What am I doing wrong?
Kind regards
I already found the command for regressing by year ( I use a logit function) and then outreg2 it. Though it still only shows the last estimate....
levelsof year, local(years)
local estimates_list
foreach y of local years {
logit A170 i.X047 log_pcBIP i.sex i.age_recoded i.kids i.health_status if year == `y', vce(robust) or
estimates store e_`y'
local estimates_list `estimates_list' e_`y'
}
outreg2 `estimates_list' using "xxx", eform cti(OR)
What am I doing wrong?
Kind regards
Comment