Hi all
,
Background:
I have a dataset with 698 participants. I'm interested in doing multivariate regression analysis.
I have 24 potential covariates (4 of them are continuous, 13 binomial, 7 categorical), 3 dependent variables (continuous: PL, VS, CE) and 1 independent variable (categorical - 6 categories; traj_alcohol). I have missing data on some of my variables (i.e., my potential covariates). I would like to perform multiple imputations and also to conduct univariate analyses with my potential covariates, DV and IV to know which one to include in my final regression model.
My two questions are:
1. I have used a chained impuattion method but get an error message and I'm not too sure how to handle it.
Command: mi impute chained (regress) mat_ment_health parity folate fad (logit) pregnancy_planning SRI preeclampsia preterm SGA drug child_sex DASS_stress DASS_depr DASS_anx antidep_combined post_smoking (mlogit) psy breastfeed parenting pren_smoking BMI diet ax = traj_alcohol, add(1)
Error: Performing chained iterations ...
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 mat_ment_health parity folate fad pregnancy_planning SRI preeclampsia preterm SGA drug
DASS_stress DASS_depr DASS_anx antidep_combined post_smoking psy breastfeed parenting BMI diet ax on m = 41
r(498);
2. Should I impute before or after doing my univariate analyses?
Thank you!

Background:
I have a dataset with 698 participants. I'm interested in doing multivariate regression analysis.
I have 24 potential covariates (4 of them are continuous, 13 binomial, 7 categorical), 3 dependent variables (continuous: PL, VS, CE) and 1 independent variable (categorical - 6 categories; traj_alcohol). I have missing data on some of my variables (i.e., my potential covariates). I would like to perform multiple imputations and also to conduct univariate analyses with my potential covariates, DV and IV to know which one to include in my final regression model.
My two questions are:
1. I have used a chained impuattion method but get an error message and I'm not too sure how to handle it.
Command: mi impute chained (regress) mat_ment_health parity folate fad (logit) pregnancy_planning SRI preeclampsia preterm SGA drug child_sex DASS_stress DASS_depr DASS_anx antidep_combined post_smoking (mlogit) psy breastfeed parenting pren_smoking BMI diet ax = traj_alcohol, add(1)
Error: Performing chained iterations ...
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 mat_ment_health parity folate fad pregnancy_planning SRI preeclampsia preterm SGA drug
DASS_stress DASS_depr DASS_anx antidep_combined post_smoking psy breastfeed parenting BMI diet ax on m = 41
r(498);
2. Should I impute before or after doing my univariate analyses?
Thank you!
Comment