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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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