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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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