Programming the statistical procedures from SAS

Proc genmod - Response variable exponentially distributed

Reply
N/A
Posts: 1

Proc genmod - Response variable exponentially distributed

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
Regular Contributor
Posts: 169

Re: Proc genmod - Response variable exponentially distributed

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
SAS Employee
Posts: 241

Re: Proc genmod - Response variable exponentially distributed

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.
Ask a Question
Discussion stats
  • 2 replies
  • 141 views
  • 0 likes
  • 3 in conversation