BookmarkSubscribeRSS Feed
znhnm
Quartz | Level 8

Hi, I have a log reg model on VA. I would like to do scoring on unseen data. I think Export Model is the right option to follow but how can I use the code hat appears when cilcking on that option? I copied and pasted it to SAS Studio, where I created a cas conection. When I run it, I get so many errors. Do I need any alterations/additions on the score cdeo? What is the step by step to see an output table with predictions?

 

znhnm_0-1681256334750.png

 

1 REPLY 1
acordes
Rhodochrosite | Level 12

/* for models that create a readable score file */

 

save the export model output to a txt file accesible from sas studio.

then work with %include.

 

FILENAME REFFILE FILESRVC FOLDERPATH='/Projects/SAS Viya training VWFS/'  FILENAME='_2B3_aux lin_reg_sales_res.txt';
data casuser.rema_scored;
set casuser.rema;
%include reffile;
run;

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 580 views
  • 1 like
  • 2 in conversation