Hi all,
I try to run hpforest below and keep having errors.
Does anyone know the reason?
Thank you!
Hao
proc hpforest data= TEMP5;
target lsm_2/level=binary ;
input HtInInches bmi/level= interval ;
input gender/level=nominal ;
run;
NOTE: The HPFOREST procedure is executing in single-machine mode.
NOTE: HPFOREST TRACE line 1035 file 14
NOTE: HPFOREST TRACE line 942 file 13
ERROR: Nominal target has a single category.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 288 observations read from the data set WORK.TEMP5.
NOTE: PROCEDURE HPFOREST used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds]
I've never used HPFOREST, but it appears you are defining the target variable as binary. You can check to see if it contains both 0 and 1 values like this:
proc freq data = TEMP5;
table lsm_2;
run;
I've never used HPFOREST, but it appears you are defining the target variable as binary. You can check to see if it contains both 0 and 1 values like this:
proc freq data = TEMP5;
table lsm_2;
run;
You are right.
I recoded it and made error from coding.
Thanks!
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.