Programming the statistical procedures from SAS

How PROC LOGISTIC read logismod (created from OUTMODEL= option) file ?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 11
Accepted Solution

How PROC LOGISTIC read logismod (created from OUTMODEL= option) file ?

Hi, I have an issue to interpret the logismod file. I know Proc Logistic can read the file using INMODEL= option, but how SAS calculated from it. Someone please  help me. 


Accepted Solutions
Solution
Tuesday
SAS Employee
Posts: 97

Re: Read OUTMODEL= option file

Posted in reply to haziqfarhan94

The OUTMODEL= data set is in a special format that is read only by the procedure itself.  There is no key to interpreting or translating it.  If you are planning to use it to score the data then you should just use the INMODEL= option and SCORE statement.  If you need a data set you can read then you should use the OUTEST= data set.

 

 

View solution in original post


All Replies
SAS Employee
Posts: 386

Re: How PROC LOGISTIC read logismod (created from OUTMODEL= option) file ?

Posted in reply to haziqfarhan94

Information describing the fitted model is saved in the file created by the OUTMODEL= option. The OUTMODEL= data set is intended solely for later use in the INMODEL= option as a means for scoring future data using a previously fitted model.  The model information is very compactly stored in the OUTMODEL= data set and it is therefore not useful for other purposes.  No information is available concerning how the model is stored in this special data set. Changes to the contents of the data set will result in errors or inconsistencies which render any results unusable. An alternative way to store model information for later use can be done using the STORE statement rather than the OUTMODEL= option. You can then view the saved model information, score new observations, and perform tests on the parameters using PROC PLM. If you want to create a data set containing the model parameter estimates which is arranged conveniently for viewing or additional processing, use the ODS OUTPUT statement to save the ParameterEstimates table. For instance,

 

ods output ParameterEstimates=myparms;

 

Scoring of new data can be done in various ways as discussed and illustrated in this note.

Occasional Contributor
Posts: 11

Re: How PROC LOGISTIC read logismod (created from OUTMODEL= option) file ?

Posted in reply to StatDave_sas

Thank you for your reply. The issue is I don't know how or who created the model. What I have is just the LOGISMOD file which is I believe created from someone who used the OUTMODEL= option to score my current data that have exactly the same variables. The score work fine in SAS, but I was assigned to translate the SAS script into SQL. That's the reason I need to know how LOGISMOD file work. 

Occasional Contributor
Posts: 11

Read OUTMODEL= option file

[ Edited ]
Posted in reply to haziqfarhan94
 
Solution
Tuesday
SAS Employee
Posts: 97

Re: Read OUTMODEL= option file

Posted in reply to haziqfarhan94

The OUTMODEL= data set is in a special format that is read only by the procedure itself.  There is no key to interpreting or translating it.  If you are planning to use it to score the data then you should just use the INMODEL= option and SCORE statement.  If you need a data set you can read then you should use the OUTEST= data set.

 

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 133 views
  • 3 likes
  • 3 in conversation