Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • stpm2cr after multiple imputation

    Dear Statalisters,

    I have been trying to conduct competing risk analysis using stpm2cr after multiple imputation (30 datasets) in STATA v18. I have been using the following code:

    Code:
    mi stset macetime_all if sld_imp == 1 | sld_imp == 2 | sld_imp == 3, id(scrssn) failure(mace_compet==1,2) scale(365.25)
    mi estimate, noisily cmdok post: stpm2cr [MACE: new_sld2 new_sld3, scale(hazard) df(4)] [nonCVD: new_sld2 new_sld3, scale(hazard) df(4)], events (mace_compete) cause(1 2) cens(0) eform
    I am getting the error "multiple global weight's now allowed r(198)".

    Is there a way to overcome this error or an alternative way to perform stpm2cr and obtain the overall results?
Working...
X