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
Long String Variable w/ Multiple ("...") SubstringsI actually have two questions, but I will leave question 2 for another post after this one gets reso…
Multivariate multiple imputation - Imputation versus analytic modelHello all, I have the following data for which I am trying to impute the missing values for two out…
Using mkspline for stratified vs interaction modelsHi folks, Trying to figure out whether it is feasible/correct to run both stratified or interaction…
Model confidence set of HansenDear all Is there any function for the Model Confidence Set (MCS) in stata? …
Getting reproducible sample-observationsHi guys, I am having problems with providing a reproducible sample for my dataset. I have a variabl…
Subscribe to:
Post Comments (Atom)
0 Response to Output results from looped cox regression
Post a Comment