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

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

2008-02-09 Thread Aswad Gurjar
> > Hello, > > I am trying to fit distribution for data consisting of 421 readings.It is > basically no of requests arrived per minute.It contains many 0 entries as > no of requests.When i use > fd<-fitdistr(V2,"gamma") > I get following error: > Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,