BookmarkSubscribeRSS Feed
emilyyi
Calcite | Level 5

Hi everyone,

 

I am using MICE to do the multiple imputation. The independent variables include both numeric (X1) and categorical variables (X2, X3). The dependent variable is a 3 level variable. The code as follow:

 

proc mi data=testa seed=123 nimpute = 5 out=outfcs;
class Y X2 X3;
fcs nbiter=10 discrim(Y X2 X3  /details classeffects = include) ;
var X1 X2 X3 Y;
run;

 

It gives warning: An effect for variable X1 is a linear combination of other effects. The coefficient of the effect will be set
to zero in the imputation. 

 

However, if I remove X1 from the MI process, it gives the error:  Each observation has analysis variables either all missing or all observed in the data set.

 

I searched a lot, but I did not see many topics on this warning in the proc mi. Anyone help me find a solution to it?

 

Thanks so much! 

 

1 REPLY 1
Ksharp
Super User

You do not need to remove X1 , SAS will set its parameter to zero defaultly . It is like so called multi-colinear in PROC REG .

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 3783 views
  • 0 likes
  • 2 in conversation