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
How to graph difference in means between model 1 and model 2Hi Statalist, I will appreciate help with this problem. First, here is my data: Code: * Example g…
total dose per day with multiple dates and times Code: * Example generated by -dataex-. To install: ssc install dataex clear input int(date_daily_3…
Using margins with several related continuous variablesI performed a Poisson regression with robust variance estimation. I have 3 independent variables. Th…
Using mata to create matrixI'd like to create a matrix shown in the figure. It's a NC*(N+C) matrix. All N block matrixes on the…
Long Data Format: Creating a New Variable with Values Conditional on Combination of Values of Other Variables Across Many ObservationsHello! I am stuck not knowing how to create a variable I need based on my current data. I have a l…
Subscribe to:
Post Comments (Atom)
0 Response to Help with stcrreg / competing regression
Post a Comment