hi SAS communities: I have a similar questions. Everything seems to work fine for the PROC MI and PROC logistic runs (Step 1 and Step 2) but the PROC MIANALYZE procedure gives me the following warning in the SAS LOG: "ERROR: Variable sex is not in the PARMS= data set." Any assistance is greatly appreciated.Thanks! /*STEP 1: Enter data for imputation*/ proc mi data= yes_1 nimpute=20 out=t2 seed=776712; class a3-a6; fcs discrim ( a3 = a1 age_g a4/ classeffects=include ) ; fcs discrim ( a4 = a1 age_g / classeffects=include ) ; fcs discrim ( a5 = a1 age_g a4/ classeffects=include ) ; fcs discrim ( a6 = a1 age_g a4/ classeffects=include ) ; var a1 age_g a3-a6 ; run; /*STEP 2: Code for the REG*/ proc reg data=t8 outest=great covout ; model hmsa_g= sex age_g edu marr li re a7_g a8 ha_g sa_g ma_g d2_21 fa_g qa_g/ covb; by _Imputation_; ods output ParameterEstimates=gmparms parminfo=gmpinfo CovB=gmcovb; run; /*step 3 MIANALYZE procedure*/ proc mianalyze parms(classvar=full)=gmparms covb(effectvar=ROWCOL)=gmcovb ; class sex d2_21 age_g edu marr li re a7_g a8 ha_g sa_g ma_g fa_g qa_g; modeleffects intercept sex d2_21 age_g edu marr li re a7_g a8 ha_g sa_g ma_g fa_g qa_g; run;
... View more