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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 404 views
  • 1 like
  • 2 in conversation