BookmarkSubscribeRSS Feed
Haemoglobin17
Obsidian | Level 7

Hi Everyone,

 

I'm trying to impute 3 variables in my dataset: Country and Smoke (both binary variables) and bmi (categorical with 4 levels).

This is my code:

 

proc mi data= Have nimpute=5 out=Want seed=54321;
class Age AR Group bmi Country Smoke;
var Age AR Group bmi Country Smoke;
fcs logistic(Country= Age AR Group );
fcs logistic(Smoke=Age AR Group Country);
fcs discrim(bmi=Age AR Group Country Smoke/CLASSEFFECTS=INCLUDE);
run;

 

 

For some reason, it gives me error. Here's the log:

 

proc mi data= Have nimpute=5 out=Want seed=54321;
3307 class Age AR Group bmi Country Smoke;
3308 var Age AR Group bmi Country Smoke;
3309 fcs logistic(Country= Age AR Group );
3310 fcs logistic(Smoke=Age AR Group Country);
3311 fcs discrim(bmi=Ag AR Group Country Smoke/CLASSEFFECTS=INCLUDE);
3312 run;

WARNING: The covariates are not specified in an FCS discriminant method for variable Group,
only remaining continuous variables will be used as covariates with the default
CLASSEFFECTS=EXCLUDE option.
ERROR: There are no continuous variables in the VAR list to impute the variable Group with
an FCS discriminant method and the default CLASSEFFECTS=EXCLUDE option.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.MI_MVN may be incomplete. When this step was stopped there were 0
observations and 94 variables.
WARNING: Data set WORK.Want was not replaced because this step was stopped.
NOTE: PROCEDURE MI used (Total process time):
real time 9.00 seconds
cpu time 1.67 seconds

 

Important, I don't want to impute Group, because it doesn't have missing. I just want to use it to compute the 3 variables above. Do you have any idea on how to solve this problem? Thank you in advance 😉

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
  • 0 replies
  • 716 views
  • 0 likes
  • 1 in conversation