Hello,
I am fairly new to Stata.
I need to run a cox regression over 248 variables and I want to then output HR and p-value. I have done a simple loop and got the results.
I tried to put results (table) in the excel but it didn't work.
Array
stset Day_death, failure(Con_OS)
forvalue i = 1/248 {
stcox v`i'
putexcel (A`i') = matrix (r(table)), names
}
Any help would be appreciated.
Related Posts with Output results from looped cox regression
Robustness ChecksHi, I'm assessing the disability wage gap at two points in time using the Oaxaca-Blinder decomposit…
Stata coding guideI have developed a coding guide for Stata along with companion code showing how to write a reproduci…
Interpreting coefficients in an interaction between a log and dummy variableHi Statalist, I am having trouble interpreting my regression that includes an interaction term with…
xtusreg: a STATA module to estimate dynamic panel models under irregular time spacingxtusreg: a STATA module to estimate dynamic panel models under irregular time spacing is now availab…
Create dummy variable per group conditional on two other variablesGood afternoon, I am currently working on my data for my master's thesis but I am having some obsta…
Subscribe to:
Post Comments (Atom)
0 Response to Output results from looped cox regression
Post a Comment