DATA Step, Macro, Functions and more

How can I get the data from the results viewer?

Accepted Solution Solved
Reply
Contributor
Posts: 27
Accepted Solution

How can I get the data from the results viewer?

Hey guys,

 

I need to run a proc logistic program, and exact the values of somers' D , gamma, tau and c from the results viewer. How can I get the data? Where are they?


Accepted Solutions
Solution
‎01-19-2018 12:25 PM
Super User
Posts: 13,941

Re: How can I get the data from the results viewer?

I think you want to add

ods output fitstatistics = yourdatesetname;

 

the statement could be either before the proc or as part of the proc before the RUN; statement.

 

View solution in original post


All Replies
PROC Star
Posts: 1,402

Re: How can I get the data from the results viewer?

[ Edited ]

Use an ODS Output Statement as described in this article

ODS OUTPUT: Store any statistic created by any SAS procedure

Contributor
Posts: 27

Re: How can I get the data from the results viewer?

would you mind to descibe more details?

Solution
‎01-19-2018 12:25 PM
Super User
Posts: 13,941

Re: How can I get the data from the results viewer?

I think you want to add

ods output fitstatistics = yourdatesetname;

 

the statement could be either before the proc or as part of the proc before the RUN; statement.

 

Contributor
Posts: 27

Re: How can I get the data from the results viewer?

not the fit statistics, but the association statistics.
PROC Star
Posts: 1,402

Re: How can I get the data from the results viewer?

You can use the ODS TRACE ON/ODS TRACE OFF Statements to track what output a certain SAS Procedure outputs.

Contributor
Posts: 27

Re: How can I get the data from the results viewer?

Is it possible to get the association statistics without print out the results? I need to do so many replications.
Super User
Posts: 13,941

Re: How can I get the data from the results viewer?


supmilk wrote:
Is it possible to get the association statistics without print out the results? I need to do so many replications.

If the issue is that you don't want all of the other result tables the you can also use ODS SELECT to only show the table you want.

Unfortunately the output that requires the ODS OUTPUT statement to generate a data set requires the output actually be sent to an ods destination.
One approach that may work would be a combination of the ODS SELECT, closing the ODS HTML destination and sending the output to another ods destination such as RTF or PDF.

☑ This topic is solved.

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

Discussion stats
  • 7 replies
  • 170 views
  • 2 likes
  • 3 in conversation