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
Building Tertiles based on Observations inside a Variable.I'm trying to see high, intermediate and low volume centers based on Number of Patients treated in t…
Can you recommend some good stata commands (including the third command) for the regression of GWR and its expansion space regressionGWR geographically weighted regression, as well as its extensions MGWR, TGWR, BGWR, etc., can be imp…
psychometric conversion scale - standard score to z-scoreI have a number of variables which are standard scores or scaled scores (language and congnitive tes…
How to store a variable's value label into a global macro?Hi stata masters, I want to store a variable's value label into a macro, and then I use this macro …
Difference between values in different positionsHello, I have one variable which reports the share of immigrants, in four years (2005, 2010, 2015 an…
Subscribe to:
Post Comments (Atom)
0 Response to output coeffs and CI from looped cox regression
Post a Comment