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
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!
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.
Ready to level-up your skills? Choose your own adventure.