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;
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
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
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!
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.