[R] Fitting gamma and exponential Distributions with fitdist

vioravis vioravis at gmail.com
Thu Apr 28 08:39:50 CEST 2011

Joshua, thanks for your reply.

I have tried out the following scaling and it seems to work fine:

scaledVariable <- (test-min(test)+0.001)/(max(test)-min(test)+0.002)  

The gamma distribution parameters are obtained using the scaled variable and
samples obtained from this distributions are scaled back using:

scaled <- (randomSamples*(max(test) - min(test) + 0.002)) + min(test) -

Is there a better way to scale the variable???  I would prefer fitting a
distribution without scaling it.

Thank you.


View this message in context: http://r.789695.n4.nabble.com/Fitting-gamma-and-exponential-Distributions-with-fitdist-tp3477391p3480265.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list