BookmarkSubscribeRSS Feed
FranciscoB
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
2 REPLIES 2
Dale
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.

Dale
StatDave
SAS Super FREQ
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.

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!

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
  • 2141 views
  • 0 likes
  • 3 in conversation