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
Continuous or discrete variable?Hello. I have a question regarding a variable I have constructed. For a number of countries, I have…
Formatting Local with Date in Graph NoteHello everyone, I want to include the date of last data actualization in the notes of a graph. Ther…
Plotting result of table functionSorry a very basic question. To get a table I run: table year city [pw=E], c(mean W) and get the …
Descriptive statistic in panel analysis multiple ifsHello to all, I’m using STATA 16. I have a panel data frame with 2 waves. Before and while the Coron…
How to adjust standard errors using wild t-bootstrapping?I am running some regressions with number of clusters 29. I believe due to low number of clusters I …
Subscribe to:
Post Comments (Atom)
0 Response to Help with stcrreg / competing regression
Post a Comment