BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
4Walk
Calcite | Level 5

I am using the "patients" example dataset from SAS.  In SAS EM I have set this data up as a data source.  The variable HR (heart rate) is set up as Interval variable.  I ran the node and checked the Exported data and it is VAR type (see Image1).  Note, numerical summary such as Min, Max, and Mean are displayed.

 

Next, I connected a StatExplore to the data node and ran it.  The results show the node is treating HR as a Class variable.  See Image2.  Why is HR, an interval variable, suddenly being treated as a Nominal variable?  I tried to figure out what was going on.  I checked the Import data to the StatNode and HR is shown as a VAR type node, see Image3, not CLASS.  Then I checked the Variables ellipses of the StatExplore node and here HR is shown as a Nominal variable -- Image4.  

 

To summarize, when I created the data source HR is set as Interval variable.  It is exported from the data node as VAR type as opposed to CLASS.  The imported data at the StatExplore node shows HR is still VAR, not CLASS.  Yet, the Variable ellipses shows HR to be nominal and the StatExplore node also treats HR as Nominal.

 

Would someone explain to me what I am missing?  Thank you.

 

best regards, Dileep

1 ACCEPTED SOLUTION

Accepted Solutions
WendyCzika
SAS Employee

When you are viewing the Sample Statistics of the imported or exported data, the type "CLASS" and "VAR" is solely based on whether the variable is character or numeric.  But the level of the variable (Nominal or Interval e.g.) if you have used the Advanced Advisor in the Input Data node, is determined by the number of distinct levels of the variable.  So by default, if a variable has fewer than 20 levels even if it is numeric, its level will be Nominal and it will be treated as a class variable in the nodes.

View solution in original post

1 REPLY 1
WendyCzika
SAS Employee

When you are viewing the Sample Statistics of the imported or exported data, the type "CLASS" and "VAR" is solely based on whether the variable is character or numeric.  But the level of the variable (Nominal or Interval e.g.) if you have used the Advanced Advisor in the Input Data node, is determined by the number of distinct levels of the variable.  So by default, if a variable has fewer than 20 levels even if it is numeric, its level will be Nominal and it will be treated as a class variable in the nodes.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1993 views
  • 0 likes
  • 2 in conversation