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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2056 views
  • 2 likes
  • 3 in conversation