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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 1175 views
  • 0 likes
  • 3 in conversation