Dear All,
I am trying to perform a competing regression analysis but receiving the following error.
'option compete(): competing risks events must be stset as censored r(459);'
Code as below:
stset FU_MA_YEARS, failure(CVE_MAJ_AMP==1) scale(1)
stcrreg IA, compete(Death==1)
I believe the error may be related to the fact that both 'death' and 'CVE_MAJ_AMP' are separate variables.
Would this be correct ? If so, what would be the best way to address this ? How can we incorporate both outcomes in the same variable ? Thank you.
Related Posts with Help with stcrreg / competing regression
Importing multiple excel worksheets using a loopHello everyone, I have a single excel file that has multiple worksheets, the worksheets are named C…
Error message when conducting Heckman correlation testDear all, I am trying to use the Heckman correlation test to investigate the possibility of a selec…
Missing dataI am looking to analyze missing data so I tried with command mdesc and summ but it came back with no…
Lag length in panel data Dear Statalisters, I have an unbalanced panel and was looking for a way to determine optimal lag le…
Seeking advice on how to accurately calculate marginal effects after multivariate probit regressionDear statalist users, Hope you all are doing well. I used Stata/MP 14.0 to run a multivariate probi…
Subscribe to:
Post Comments (Atom)
0 Response to Help with stcrreg / competing regression
Post a Comment