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
DfbetaIm using OLS regression. To find dfbetas I cannot use defbeta command after a regression command tha…
How to compute RSS and TSS from xtivregI'm working on a project investigating the impact of childhood malnutrition on scholastic performanc…
Drop observations by group if not in all survey roundsHi all, I would like to drop households from my dataset if they were not surveyed in both of my sur…
Statistical power of small observationsHello- although that one of the variables in my regression forms only 1.7% of that observations (tot…
Re: svy, subpop ( ): tab a b, obs Pearson failed to calculate Chi-square statisticGreeting Stata Users, I am using svy, subpop ( ): tab a b, pearson to generate chi-square statistic…
Subscribe to:
Post Comments (Atom)
0 Response to Output results from looped cox regression
Post a Comment