BookmarkSubscribeRSS Feed
Calcite | Level 5
Hi everyone,

I am currently trying to fit a GLM using proc genmod and my response variable is exponentially distributed. I can't seem to find how to set this up since the exponential distribution is not among the options for dist.

If it is not possible, I would like to ask then if it's possible to fix one of the parameters of a Gamma distribution so that I can fix the response variable distyribution as Gamma(1,mean).

Does anyone have any suggestion about what to do when most of the data (supposedly continuous) has value 0?

Thank you in advance
Pyrite | Level 9
Perhaps you want to use the LIFEREG procedure instead of PROC GENMOD. The LIFEREG procedure allows specification on the MODEL statement that the distribution is exponential.

The exponential distribution is obtained when the scale parameter of the gamma distribution (nu in the GENMOD documentation) is 1. So, you can fit a model to exponential data by simply adding the SCALE=1 and NOSCALE options in the MODEL statement. The NOSCALE option keeps the scale parameter fixed at the SCALE=1 setting and gives you a Lagrange multiplier test of the nu=1 restriction.


Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.


Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 3 in conversation