Programming the statistical procedures from SAS

proc mi warning An effect for variable X1 is a linear combination of other effects.

Reply
Established User
Posts: 1

proc mi warning An effect for variable X1 is a linear combination of other effects.

[ Edited ]

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! 

 

Grand Advisor
Posts: 9,447

Re: proc mi warning An effect for variable X1 is a linear combination of other effects.

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 .

Ask a Question
Discussion stats
  • 1 reply
  • 592 views
  • 0 likes
  • 2 in conversation