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
Angrist-Pischke F-Statistic Missing in xtivreg2?Dear all, I have two endogeneous regressors and two instruments. I read that the Kleibergen-Paap rk…
outreg2 for all dataframesHi, I am using Stata 17 and would help in producing tables in all my dataframes. Below is an exampl…
What are the functional form of the fixed-effects regression, random-effects regression and pooled regression?Good morning to the community Stata. I wrote that the functional form of the fixed-effects regressi…
Date-variable: Extracting day-of-month as numericHello everyone, I would highly appreciate your help with the following: I have a date-variable in …
Principal component analysisHi dears, I have a question. I would like to apply the PCA for constructing a single index. I have v…
Subscribe to:
Post Comments (Atom)
0 Response to Output results from looped cox regression
Post a Comment