[R] Problem with estimation of distribution parameters

Ben Bolker bolker at ufl.edu
Wed Jan 23 17:16:37 CET 2008


Oliver Herbst <oliverherbst <at> gmx.de> writes:

> 
> Hi, 
> 
> I tried to calculate the MLE estimation of a parameter of a gamma
> distribution of a data set, which is called "amount".. I did it with the
> command: fitdistr(amount,"gamma") 
> 
> and got the error message:
> 
> Error in optim(x = c(363.36, 551.15, 603.91, 170.99, 225.21, 218.01,
> 1816.82,  : 
> 
>         non-finite finite-difference value [2]
> 
> Warning message:
> 
> NaNs wurden erzeugt in: dgamma(x, shape, scale, log)
> 
> What does it mean? What can I do?
> 

    Send (or post somewhere if it is too large) the full data set (amount).
(See the posting guide: we like REPRODUCIBLE examples ...)

  cheers
     Ben Bolker



More information about the R-help mailing list