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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 3619 views
  • 0 likes
  • 2 in conversation