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
Merging datasets based on recorded timeHello, I have a data file that contains activities done during certain times (for the purpose of th…
Creating tables and graphs on data relating to both the survey respondent and their partnerHi Statalist. I would appreciate a hand with how to create a scatterplot presenting data on both th…
line of fit for two skewed continuous variablesI am conducting Spearman's correlation on two skewed continuous variables. I do not wish to log tran…
Collapse says varlist requiredHi! I tried to collapse the following data but it says varlist required, why? collapse smi1 smi2 l…
State-level time series: tool for calculating requisite number of observations per state/year?Greetings, I'm running Stata 15.1 on OSX. My ultimate goal is to examine whether changes in a speci…
Subscribe to:
Post Comments (Atom)
0 Response to output coeffs and CI from looped cox regression
Post a Comment