The SAS Output Delivery System and reporting techniques

PROC MCMC ods output PostSummaries NOT CREATED

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

PROC MCMC ods output PostSummaries NOT CREATED

Dear All,

I am trying to write ods output PostSummaries in PROC MCMC, but I get the same error on and on (copied below), eventhough there is not any NOPRINT option. I've already tried to add a 'quit' before the ods command and write the ods commans at the begining of the PROC MCMC statement but it doesn't work.

 

ERROR I GET:

Output 'PostSummaries' was not created.  Make sure that the output object name, label,

         or path is spelled correctly.  Also, verify that the appropriate procedure options are used

         to produce the requested output object.  For example, verify that the NOPRINT option is not

         used.

 

PART OF THE CODE:

PROC MCMC data=Libname.data seed=17 nmc=100000;

 

parm betas COR {.10 .10 .05};
prior COR ~ mvn(mu3, Sig_c);
prior betas ~ mvn(mu2, Sigma2);
model data ~ mvn(betas, Sig_Def);
ods output PostSummaries=parameters;
run;

 

Any suggestion will be highly appreciated.

 

Thanks

Belén


Accepted Solutions
Solution
‎05-17-2016 03:48 AM
SAS Super FREQ
Posts: 8,820

Re: PROC MCMC ods output PostSummaries NOT CREATED

Hi:

  If you look at the documentation for PROC MCMC, it seems to indicate that you only get the PostSummaries object created if you ALSO use the option STATISTICS=SUMMARY, as described on this documentation page:

http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_mcmc_details...

 

  You can always use ODS TRACE ON before your PROC MCMC to see what output objects are created, but I think it's a matter of using the right option to turn on the creation of the output object.

 

cynthia

View solution in original post


All Replies
Super User
Posts: 11,134

Re: PROC MCMC ods output PostSummaries NOT CREATED

If you run the code without the ODS output do you get parameters in the displayed output?

Trusted Advisor
Posts: 1,116

Re: PROC MCMC ods output PostSummaries NOT CREATED

Hello Belén,

 

As ballardw has alluded to, you probably didn't obtain that summary table in the displayed output either.

 

The error message includes an important hint: "verify that the appropriate procedure options are used to produce the requested output object." To do so, you look up your desired ODS table name (here: PostSummaries) in the table ODS Table Names of the respective procedure. There you see in column "Statement or Option" that PostSummaries is requested by the option STATISTICS=SUMMARY (of the PROC MCMC statement). Since you didn't specify this option, the ODS table was not produced.

 

In general, you find the link to the list of ODS table names under the "Details" tab in the procedure documentation, mostly close to the bottom of the drop down list.

 

 

 

New Contributor
Posts: 3

Re: PROC MCMC ods output PostSummaries NOT CREATED

Thannk you very much! You were right Smiley Happy

Solution
‎05-17-2016 03:48 AM
SAS Super FREQ
Posts: 8,820

Re: PROC MCMC ods output PostSummaries NOT CREATED

Hi:

  If you look at the documentation for PROC MCMC, it seems to indicate that you only get the PostSummaries object created if you ALSO use the option STATISTICS=SUMMARY, as described on this documentation page:

http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_mcmc_details...

 

  You can always use ODS TRACE ON before your PROC MCMC to see what output objects are created, but I think it's a matter of using the right option to turn on the creation of the output object.

 

cynthia

New Contributor
Posts: 3

Re: PROC MCMC ods output PostSummaries NOT CREATED

Thank you very very much to everyone!!! In fact, finally it was a matter of adding "STATISTICS=SUMMARY" in the first line of the command, so now I can save the results in a nother dataset!

 

Thanks again,

 

Belén

☑ This topic is solved.

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

Discussion stats
  • 5 replies
  • 651 views
  • 1 like
  • 4 in conversation