BookmarkSubscribeRSS Feed
juanvg1972
Pyrite | Level 9

Hi 

 

I am using proc hpspit in order to create a decision tree. I am usin SAS/STAT in SAS 9.04.01M5P091317

 

This is my code:

 

proc hpsplit data = train nodestats=arbol;
    target baja / level=nominal;
    input cod_posicion educacion sexo / level=nominal;
    input edad ant salario eval / level = interval;
    /* Export information about variable importance */
    output importance=import;
    /* Export the model code so this can be used to score testing data */
    code file="/home/user1/pgmas/model_arbol3.sas";
    rules file="/home/user1/pgmas/fich/reglas3.txt";
run;

and when I execute, I gets an error:

 

ERROR: Levelization contains no levels!

But I have specified the level of each variable.

 

The same proc and options runs well with other datasets

 

Can anybody help me??

1 REPLY 1
juanvg1972
Pyrite | Level 9

Sorry, there was a problem in my data, not in the proc.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 1 reply
  • 806 views
  • 0 likes
  • 1 in conversation