[R] Fitting gamma distribution

smart hendsome putra_autumn86 at yahoo.com
Tue Feb 17 00:59:27 CET 2015


I'm very new to r-programming. I have rainfall data. I have tried to fit gamma into my data but there is error. Anyone can help me please.
My rainfall data as I uploaded. When I try run the coding:
library(MASS)

KLT1<-read.csv('C:/Users/User/Dropbox/PhD Materials/Coding_PhD_Thesis/Kelantan_Average/K1.csv')

KLT<-KLT1$Amount
fd_g <- fitdistr(KLT, "gamma")
Error in stats::optim(x = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  : 
  initial value in 'vmmin' is not finite
Anyone can help me? Thanks.





More information about the R-help mailing list