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

I'm running a zero-inflated negative binomial regression model with proc genmod and would like to output the parameter names.

 

I think the mean (or lambda) =p and zero-inflation constant = pzero, but can't find the output name for the dispersion parameter in the documentation (https://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_genmod_synt...).

 

proc genmod data =dataset;
  	model y = / dist=zinb;
  	zeromodel / link = logit;
	output out=ZINBFit p=lambda pzero=pzero dispersion(?)=k;
run;
1 ACCEPTED SOLUTION

Accepted Solutions
sbxkoenk
SAS Super FREQ

Hello,

 

With

ODS OUTPUT

statement , you can capture a table that is in your output window (Results) in a data set.

 

Use 

ODS TRACE ON;

before your PROC GENMOD statement to know about the name of the output object. The names of all output objects (tables and graphs) are published in the LOG.

 

If the table | output object you are interested in (because it contains the dispersion) is called ABC, then do :

ODS OUTPUT ABC = WORK.DISPERSION;

Cheers,

Koen

View solution in original post

1 REPLY 1
sbxkoenk
SAS Super FREQ

Hello,

 

With

ODS OUTPUT

statement , you can capture a table that is in your output window (Results) in a data set.

 

Use 

ODS TRACE ON;

before your PROC GENMOD statement to know about the name of the output object. The names of all output objects (tables and graphs) are published in the LOG.

 

If the table | output object you are interested in (because it contains the dispersion) is called ABC, then do :

ODS OUTPUT ABC = WORK.DISPERSION;

Cheers,

Koen

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 734 views
  • 1 like
  • 2 in conversation