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