Hi, I am trying to do multiple imputation. I've given it a shot for the entire day, but something is wrong.
I run a macro below. It's just a simple cancer vs abx univariate logistic regression model. What does the warning indicate? I am using PROC MI first (no errors) and then PROC logistic, and then PROC mianalyze.
3980 %univariate_categorical(var1=cancer, var2=cancer);
NOTE: PROC LOGISTIC is modeling the probability that RECEIVED_ABX='1'.
NOTE: Convergence criterion (GCONV=1E-8) satisfied.
NOTE: The above message was for the following by-group:
Imputation Number=1
NOTE: PROC LOGISTIC is modeling the probability that RECEIVED_ABX='1'.
NOTE: Convergence criterion (GCONV=1E-8) satisfied.
NOTE: The above message was for the following by-group:
Imputation Number=2
NOTE: PROC LOGISTIC is modeling the probability that RECEIVED_ABX='1'.
NOTE: Convergence criterion (GCONV=1E-8) satisfied.
NOTE: The above message was for the following by-group:
Imputation Number=3
NOTE: PROC LOGISTIC is modeling the probability that RECEIVED_ABX='1'.
NOTE: Convergence criterion (GCONV=1E-8) satisfied.
NOTE: The above message was for the following by-group:
Imputation Number=4
NOTE: PROC LOGISTIC is modeling the probability that RECEIVED_ABX='1'.
NOTE: Convergence criterion (GCONV=1E-8) satisfied.
NOTE: The above message was for the following by-group:
Imputation Number=5
NOTE: The data set WORK.COVBDAT has 10 observations and 4 variables.
NOTE: The data set WORK.PARMSDAT has 10 observations and 7 variables.
NOTE: There were 750 observations read from the data set ABX.PROCESSED150_IMPUTED.
NOTE: PROCEDURE LOGISTIC used (Total process time):
real time 0.19 seconds
cpu time 0.18 seconds
WARNING: Between-imputation variance is zero for variable intercept.
WARNING: Between-imputation variance is zero for variable cancer.
NOTE: PROCEDURE MIANALYZE used (Total process time):
real time 0.02 seconds
cpu time 0.03 seconds
On a different predictor variable, which is continuous, I get a flat out error:
ERROR: Within-imputation Estimate missing for variable days_cough_duration_numeric in
_Imputation_= 1 in the input PARMS= data set.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE MIANALYZE used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
I opened up the data set and I don't see any errors in imputation #1.
What is the most painless way to do multiple imputation for categorical variables? I see this IVE software, but I took a look and that looks like another learning curve to learn how to use. I'd prefer to do it in SAS 9.1
Thanks!
... View more