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.
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.