Re: [R] Error in optim while using fitdistr() function for estimationof parameters

2008-02-09 Thread Aswad Gurjar
Hello, Thank You for response.Yes,It is discrete data.I have tried discrete model using goodfit() test.But that too is not working.Is there any other test for discrete data? When I try goodfit() test for discrete distribution: gf<-goodfit(x[[1]],type= "nbinomial",method= "MinChisq") where x[[1]]

Re: [R] Error in optim while using fitdistr() function for estimationof parameters

2008-02-09 Thread Bill.Venables
Chenge your model, most likely. You are telling us a) the response is discrete and b) there is a substantial probability that the value is zero. The gamma distributon is a model for a continuous response, your response is integer valued. Perhaps you should consider something the Poisson or Negati