BookmarkSubscribeRSS Feed
Shradha1
Obsidian | Level 7
I am trying to build a logistic regression model in SAS Enterprise Miner. For that after the impute step I am Transforming the variables then running a code to check VIF of all variables. But every time just after transformation of variables, all of my interval(numerical) variables are being changed to Nominal and then while running the VIF code I am getting the error as 'variable x in the list does not match type as mentioned in the list' for all the interval variables and hence unable to get VIF results.
Please advise on how to solve this error. Thank you
2 REPLIES 2
ballardw
Super User

Data

Before and and after the transpose

In the form of a data step.

 

I suspect since your error says "list" that somewhere you are using one of the variable list constructors like

 

x:   or x1 - x25. And one of the variable names is getting used that you either don't intend to use or don't realize that the variable is character.

 

Proc contents on your before and after transpose data sets will tell which are character or not.

 

It never hurts to show the entire procedure or data step code that throws messages you have questions about. Copy the entire step from the LOG along with all the notes and warnings and such. Paste the log text into a text box opened on the forum with the </> icon.

Shradha1
Obsidian | Level 7
This is the code after which I get the error..
<Proc reg data=&EM_IMPORT_DATA;
+model (target variable)=%EM_INPUT/ vuf collin;>

The error is <variable xxx in list does not match type prescribed for this list>
I am getting this error for all the numerical variables in my data after running the Transform Variables step and creating dummies for categorical variables

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 732 views
  • 0 likes
  • 2 in conversation