I have a problem running a panel regression. I have data for n=1019 observations and want to carry out a regression analyses with 15 variables. But due to a lot of missing values for some observations and variables, Stata carries out the regression with only n=347 observations. Therefore, I'd like to use multiple imputation with the regression method for missing data but am not quite sure how to implement it.
After specifying my dataset I used the commands
But after the last command, Stata shows a lengthy error message:
What do I do wrong?
Best,
Jules
After specifying my dataset I used the commands
HTML Code:
mi set mlong
HTML Code:
mi register var1 var2 var3 ...
HTML Code:
mi impute chained (logit) var1 (logit) var2 (regress) var3 ... , add(15)
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 var1 var2 var3 ... on m = 1
r(498);
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 var1 var2 var3 ... on m = 1
r(498);
Best,
Jules
Comment