Hi Listers,
I am using Stata v16.1 and I am building an MI model for my data using -mi impute-. I have 3 imputation variables (x1, x2, x3) and 4 complete predictors (z1, z2, z3, z4). I set the model as below but it kept crashing.
mi imputed chained (regress) x1 (logit) x2 x3 = i.z1 i.z2 z3 z4
So I used the dryrun option to get suggestions on how to build the model. This is what I got, which suggests I should not include x3 for x2 and x2 for x3:
regress x1 i.x2 i.x3 i.z1 i.z2 z3 z4
logit x2 x1 i.z1 i.z2 z3 z4
logit x3 x1 i.z1 i.z2 z3 z4
Based on the mi impute manual, I opted for using the omit option but this has not quite worked as x2 and x3 still have missing data after running the MI model
mi imputed chained (regress) x1 (logit, omit(i.x2 i.x3)) x2 x3 = i.z1 i.z2 z3 z4, add(50)
Any advice on how to address this?
I am using Stata v16.1 and I am building an MI model for my data using -mi impute-. I have 3 imputation variables (x1, x2, x3) and 4 complete predictors (z1, z2, z3, z4). I set the model as below but it kept crashing.
mi imputed chained (regress) x1 (logit) x2 x3 = i.z1 i.z2 z3 z4
So I used the dryrun option to get suggestions on how to build the model. This is what I got, which suggests I should not include x3 for x2 and x2 for x3:
regress x1 i.x2 i.x3 i.z1 i.z2 z3 z4
logit x2 x1 i.z1 i.z2 z3 z4
logit x3 x1 i.z1 i.z2 z3 z4
Based on the mi impute manual, I opted for using the omit option but this has not quite worked as x2 and x3 still have missing data after running the MI model
mi imputed chained (regress) x1 (logit, omit(i.x2 i.x3)) x2 x3 = i.z1 i.z2 z3 z4, add(50)
Any advice on how to address this?
Comment