Hi there,
I need to run a cox regression over 21 pollutants (many times) and I want to then output HR and the CI by pollutant. I have done the loop (example below with only a few variables)

foreach var of varlist pecbrdnew_rdnew hcb_rdnew hcha_rdnew hchb_rdnew{
stcox `var' age sex
eststo cox_`var'
}

esttab, beta ci not noobs

the regression loops and gives me HR and CI, but this gives me an unusable table where the coeff are on the diagnonal… I cant find a good example anywhere. I dont need the coeffs for age and sex

I assume I should be using a matrix but cant get there…I just want a simple table:

HR lower CI Upper CI
pecbrdnew_rdnew
hcb_rdnew
etc

Dianna