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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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