I am encountering an error using the mi impute chained command in Stata 14.1 to impute on a dataset with 1500 observations. I typed the following:
I get this error:
I have tried the augment option, but it takes a very long time to run, and this is a program I will need to run repeatedly, so I would like it to be fairly efficient.
Thank you so much for any advice on how I might fix this problem.
mi impute chained (ologit) guilty age educ income urbanicity (logit) male white black jewish protestant catholic other_christian non_judeochristian republican democrat independent northeast midwest farwest mountain, add(5)Those are precisely the variables I will use to estimate "guilty."
I get this error:
Performing chained iterations ...I get the same error if I include any two or more of those six variables. Those are also the only variables with missing data -- so the whole point of the imputation is to have them predict each other. Eliminating all but one would defeat the purpose.
mi impute logit: perfect predictor(s) detected
Variables that perfectly predict an outcome were detected when logit
executed on the observed data. First, specify mi impute's option noisily to
identify the problem covariates. Then either remove perfect predictors from
the model or specify mi impute logit's option augment to perform augmented
regression; see The issue of perfect prediction during imputation of
categorical data in [MI] mi impute for details.
error occurred during imputation of guilty income urbanicity republican democrat
independent on m = 1
r(498);
I have tried the augment option, but it takes a very long time to run, and this is a program I will need to run repeatedly, so I would like it to be fairly efficient.
Thank you so much for any advice on how I might fix this problem.
Comment