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
error in running mi impute chainedThank you very much in advance for reading this post, and for any help that you can extend. I am tr…
Generating a new variable on non-missing conditionHi I have a small query. I am trying to generate a new variable (X), based on my existing 3 variabl…
Multilevel modelling using “svy:melogit” with the ‘subpop’ option giving weird resultsI did my modelling using “svy:melogit” with the ‘subpop’ option in Stata 15.1 as follows after readi…
Labels (Abc) from variable names (Abc_defghi)Hi all, I've seen a few posts asking questions about labelling variables by their respective names,…
PPMLHDFE Gravity model for remittancesDear Tom Zylkin and Joao Santos Silva I hope you are doing well, I am using a gravity model in the …
Subscribe to:
Post Comments (Atom)
0 Response to Output results from looped cox regression
Post a Comment