Dear Stata community,
I have run the Fine-Gray competing risk model using stcrreg and worked perfectly well. However, my data is from several sites which are significantly different. I would like to account for this heterogeneity explicitly using a random effect multilevel model. I am aware the stcrreg support an option for robust SE but unfortunately this method does not explicitly account for the heterogeneity.
Here is sample model
stcrreg i.age_cat,comp(cevent) vce (cluster site) //this runs
The multilevel model I need would look like this
stcrreg i.age_cat || site:,comp(cevent)
However the above model does not work. Does in anyone know how I can control for the competing event as well as the heterogeneity in the model?
Thanks
Best regards Moses Ngari
Related Posts with stcrreg competing risk model with random intercept
Twoway graph constant scalesDear all, I am trying to figure out how to ensure that a 45-degree line is also visually a 45-degre…
Inflated coefficient using FEIV modelDear Statalist, I am estimating the effects of variable x on outcome y. Since x might be endogenous…
Marginal effect after system GMM continuous variables penal dataHi experts and researchers, I am using interactive terms in my research and I need to understand ho…
How to convert a string variable to numeric and customize the label encoding?I have a dataset for transportation research. I have imported the data into STATA 17. The dataset co…
How do I create a new variable for all levels of a variable when a certain condition is satisfied?Hi there, I am new to STATA and I am currently struggling to find a solution for what I would say i…
Subscribe to:
Post Comments (Atom)
0 Response to stcrreg competing risk model with random intercept
Post a Comment