BookmarkSubscribeRSS Feed
psrajput
Obsidian | Level 7

How to interpret the outmodel dataset? I want to replicate the outmodel in Python. Please share if there is any good article/link on this topic.

6 REPLIES 6
Reeza
Super User

Outmodel creates a proprietary binary file that will be useless. The parameter estimates tables has enough for you to code it in Python using basic math. 

Reeza
Super User
FYI - SAS Enterprise Miner does port models in PMML or it used to. Not sure if any Python packages support that.
psrajput
Obsidian | Level 7
Is there any option to get the parameter estimates?
Reeza
Super User
ods output parameterestimates=want;

Put that in your proc and the parameterestimates will be saved to a data set called WANT.
psrajput
Obsidian | Level 7

This is what I tried and didn't work:

 

ods output parameterestimates=want;

proc logistic
inmodel=abc
score
data=xyz
out=aaa
quit;

ods output close;
PaigeMiller
Diamond | Level 26

You can't use 

ods output parameterestimates=want;

and INMODEL together. This particular ODS OUTPUT statement is for when you fit a model using PROC LOGISTIC, with no INMODEL=.

--
Paige Miller

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 1332 views
  • 2 likes
  • 3 in conversation