Write and run SAS programs in your web browser

How to write code for classification tree in sas studio

Reply
Contributor
Posts: 24

How to write code for classification tree in sas studio

hi, i need to write code to build classification tree in sas, but it shows error.

coudl you please help?

 

 

Attachment
Grand Advisor
Posts: 16,367

Re: How to write code for classification tree in sas studio

Are you using SAS UE? If so, I don't think HP procedures are available. 

Contributor
Posts: 24

Re: How to write code for classification tree in sas studio

hi,

i am using sas studio, but it is solved now.

 

one more question, do you know how to score model in sas studio, what is the code i shall write ?

Grand Advisor
Posts: 16,367

Re: How to write code for classification tree in sas studio

It depends on the model. Proc score exists as well as a CODE statement in various procs. 

Grand Advisor
Posts: 9,332

Re: How to write code for classification tree in sas studio

If you are using PROC HPSPLIT , check CODE statement.

proc hpsplit ..........
......
code 'score.sas';
....

data want;
 set test;
 %include 'socre.sas';
run;


SAS Super FREQ
Posts: 3,233

Re: How to write code for classification tree in sas studio

[ Edited ]
Super User
Posts: 1,079

Re: How to write code for classification tree in sas studio

Beside to @Reeza's answer, I have general remarks:

   when you need help with writing a code program - post yout code

   when you have error while running - post your log, thus displaying the code and the error message

   when you doubt about how to deal with your data - post a sample of input data, your wanted output and your code

Post a Question
Discussion Stats
  • 6 replies
  • 198 views
  • 2 likes
  • 5 in conversation