BookmarkSubscribeRSS Feed
ThePirate
Calcite | Level 5

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?

3 REPLIES 3
gergely_batho
SAS Employee

Append your score data set to the training data set.

Then run PROC NLIN with the OUTPUT statement.

berkay_kinaci
Calcite | Level 5

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,

 

 

gergely_batho
SAS Employee
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;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1483 views
  • 0 likes
  • 3 in conversation