Need to fit gamma distribution on given data set

Hi
Dears i have this data set
d=c(4,2,1,3,0,1,2,2,3,1,4,5,3,2,2,4,3,2,1,3)
i want to fit gamma distribution on this data set and want to find the values of both parameters, AIC and BIC.
please help
Best regards

There are some nice answers here, do they work for you? The {fitdistrplus} package (also mentioned here and there) does give the AIC and BIC.

Thank you very much for your reply.
I already use this here it generate a data set for specified parameters but in my case I have a data set and need to fit gamma directly to estimate it's parameters, AIC and BIC.

The most relevant part of the thread for you would be
How would you fit a gamma distribution to a data in R? - Stack Overflow i believe

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.