BookmarkSubscribeRSS Feed
rboire
Calcite | Level 5

in PROC HPNEURAL, what is the right syntax in using character level variables. You can see from PROC LOGISTIC that this is handled appropriately through the class statement. see below.

 

PROC LOGISTIC DATA=lib1.Training_Atlantic outmodel=sasuser.HS_log_Model;
Class  LISTTYPEClasfnListSrcRentExcHse (Ref='R') NUMLISTSourcesFromWhichRecCame     PROV1  ;
MODEL My_RESPONDER_FLAG( EVENT='1' ) =   X1  LISTTYPEClasfnListSrcRentExcHse   NUMLISTSourcesFromWhichRecCame   Non_Resp  HKINTERSECT   PROV1                                       
/selection=backward  lackfit rsq stb;
store HS_log_Model;
RUN;

1 REPLY 1
WendyCzika
SAS Employee

In HPNEURAL, you use INPUT statements to define your inputs, with the appropriate LEVEL= option, e.g.:

 

input classvar1 classvar2 .... / level=nom;

input continuousvar1 continuousvar2 ... / level=int;

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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