Skip to content
Prev 126741 / 398500 Next

Fiting of gamma distribution

Dr. Abhey Ram Bansal wrote:
Does 

library(MASS)
fitdistr(log(x),"gamma")

work for you?

You'll need to make sure that all of your data values are > 1,
otherwise the logged data will have values <0 and fitdistr
will barf.

  cheers
   Ben Bolker