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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 418 views
  • 1 like
  • 2 in conversation