/***************************************************************/ /* */ /* S A S S A M P L E L I B R A R Y */ /* */ /* NAME: hpfrstg1.sas */ /* TITLE: Getting Started Example (hpfrstg1) */ /* PRODUCT: HPA */ /* SYSTEM: */ /* KEYS: */ /* PROCS: HPFOREST */ /* DATA: */ /* */ /* SUPPORT: UPDATE: */ /* REF: */ /* MISC: Example from the Getting Started section of the */ /* HPFOREST chapter of HPA. */ /* */ /***************************************************************/ data punch; input watermelon pineapple orange rating; datalines; 1.0 0.0 0.0 4.3 1.0 0.0 0.0 4.7 1.0 0.0 0.0 4.8 0.0 1.0 0.0 6.2 0.0 1.0 0.0 6.5 0.0 1.0 0.0 6.3 0.5 0.5 0.0 6.3 0.5 0.5 0.0 6.1 0.5 0.5 0.0 5.8 0.0 0.0 1.0 7.0 0.0 0.0 1.0 6.9 0.0 0.0 1.0 7.4 0.5 0.0 0.5 6.1 0.5 0.0 0.5 6.5 0.5 0.0 0.5 5.9 0.0 0.5 0.5 6.2 0.0 0.5 0.5 6.1 0.0 0.5 0.5 6.2 ; run; proc hpforest data=Punch maxtrees=10; input watermelon pineapple orange; target rating; run;