I have been developing survival models using stcox and stpm2 commands and have been using estat concordance and stcstat2 commands to obtain the c-index of apparent model performance, respectively, as post-estimation commands.
However, I am unable to obtain the c-index or calibration plot if I develop the models while also doing multiple imputation, as the above commands do not work.
For instance:
or with stepwise selection:
I presume this may need to be done manually if there is no package that can achieve, and would be grateful for your help in how I would code this?
Many thanks in advance
However, I am unable to obtain the c-index or calibration plot if I develop the models while also doing multiple imputation, as the above commands do not work.
For instance:
stset spell, failure(event==1) scale(365)
mi set flong
mi register imputed missing_variable
mi impute chained (mlogit) missing_variable = v1 v2 v3 v4, add(10) noisily rseed(123)
mi estimate, saving(my_estimates, replace): stcox v1 v2 v3 v4
estat concordance
mi set flong
mi register imputed missing_variable
mi impute chained (mlogit) missing_variable = v1 v2 v3 v4, add(10) noisily rseed(123)
mi estimate, saving(my_estimates, replace): stcox v1 v2 v3 v4
estat concordance
or with stepwise selection:
stset spell, failure(event==1) scale(365)
mi set flong
mi register imputed missing_variable
mi impute chained (mlogit) missing_variable = v1 v2 v3 v4, add(10) noisily rseed(123)
xi: mim: stepwise, pr(0.1): stcox v1 v2 v3 v4, nohr
estat concordance
mi set flong
mi register imputed missing_variable
mi impute chained (mlogit) missing_variable = v1 v2 v3 v4, add(10) noisily rseed(123)
xi: mim: stepwise, pr(0.1): stcox v1 v2 v3 v4, nohr
estat concordance
I presume this may need to be done manually if there is no package that can achieve, and would be grateful for your help in how I would code this?
Many thanks in advance
Comment