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
Related Posts with output coeffs and CI from looped cox regression
Random Effect or Mixed effect model for Panel DataDear Statalist, I want to estimate the effect of endowment, netprice, religiosity and knowledge on c…
Egen or gen newvar to categorize the 50 states into Democrat, Republican, or Swing based on 2016 election resultsHi y'all I would be most grateful if anyone out there has written a simple code to categorize states…
Putexcel: More of two decimal in putexcelHi! I have a problem with the next code : Code: * I need more of two decimal in the next test: s…
Changing SIF DMYhms Time Variables to DMY Time VariablesI seek to geospatially merge some rainfall data with a master dataset. Before I can do that though, …
egen or gen newvar to categorize the 50 states into Democrat, Republican, or Swing based on 2016 election resultsHi y'all I would be most grateful if anyone out there has written a simple code to categorize states…
Subscribe to:
Post Comments (Atom)
0 Response to output coeffs and CI from looped cox regression
Post a Comment