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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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