Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

How to Score Data Using Proc NLIN?

Reply
N/A
Posts: 1

How to Score Data Using Proc NLIN?

Hello,

I am new at SAS and SAS EM and I am not sure how to score data using my model when I am using Proc NLIN. It seems that Proc Logistic has an option to score the data, but not Proc NLIN. Any ideas?

SAS Employee
Posts: 340

Re: How to Score Data Using Proc NLIN?

Append your score data set to the training data set.

Then run PROC NLIN with the OUTPUT statement.

New User
Posts: 1

Re: How to Score Data Using Proc NLIN?

Hello Mr. Gergely,

 

Could you please extend it? I did not get how to put score date set to the proc nlin without disturbing parameters created by train data. Is it possible you to put a small example showing both training and scoring?

 

Thanks,

 

 

SAS Employee
Posts: 340

Re: How to Score Data Using Proc NLIN?

If an observation contains missing value for the target, that observation is not used to fit the data.

data to_score;/*weight is not included!*/
name='NewStud';age=15;height=50;output;
run;

data all;
set sashelp.class to_score;
run;


proc nlin data=all;
parms b0=1 b1=1 b2=1;
model weight=b0 + b1*height + b2*age;
output out=result predicted=p_weight;
run;
Ask a Question
Discussion stats
  • 3 replies
  • 454 views
  • 0 likes
  • 3 in conversation