BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Dinurik
Fluorite | Level 6

Hi, 

 

I have been trying to output a dataset from proc genmod that would contain parameter estimates and their associated standard errors. I need to further use them to get pooled estimates from 5 imputed datasets. Here is my code:

 

    proc genmod data=mydata;

        weight stweight;

        class id var1 var2 var3 var4;

        model y = var1 var2 var3 var4 / dist=N link=id type3;

        repeated subject=id / type=ind;

       ods output parameterestimates=parms parminfo=info;  

run;

 

When I run it, SAS almost crashes and then tells me that the output dataset has not been created. Could anyone please tell me what I am doing wrong? 

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

@Dinurik wrote:

WARNING: Output 'ParameterEstimates' was not created. 


The PROC GENMOD documentation discusses this explicitly. You need the PRINTMLE option

 

Capture.PNG

--
Paige Miller

View solution in original post

4 REPLIES 4
PGStats
Opal | Level 21

Please show the messages from the SAS log.

PG
Dinurik
Fluorite | Level 6

WARNING: Output 'ParameterEstimates' 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.

PaigeMiller
Diamond | Level 26

@Dinurik wrote:

WARNING: Output 'ParameterEstimates' was not created. 


The PROC GENMOD documentation discusses this explicitly. You need the PRINTMLE option

 

Capture.PNG

--
Paige Miller
Dinurik
Fluorite | Level 6

Thanks. The SAS explanation lacks a bit of detail. Wasn't clear whether PRINMLE belongs to the model statement or repeated statement. It should be in the repeated statement in my case. This code worked.

 

proc genmod data=mydata;
    class id var1 var2 var2 var4;
    model y = var1 var2 var3 var4  ;
    repeated subject=id / type=ind printmle ;
    ods output ParameterEstimates=gmparms;
run;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 6124 views
  • 0 likes
  • 3 in conversation