>
> Hello everyone,
>


>
> I  was trying to do some distribution fitting with a numerical field
> called Tolls. The sample size = 999 rows.
>
> Basically I assigned the Toll data to a new variable K by doing:
> k<-dtest$Toll
>
> After that, tried to fit a gamma distribution by doing: fitG<-fitdist(k,
> "gamma")
>
> Then the following messages showed (oh and I checked for empty rows before
> doing this):
>
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> Warning in dgamma(c(363328L, 376216L, 367032L, 314826L, 311892L, 313340L,
> :
>   NaNs produced
> [1] "Error in optim(par = vstart, fn = fnobj, fix.arg = fix.arg, obs =
> data,  : \n  non-finite finite-difference value [2]\n"
> attr(,"class")
> [1] "try-error"
> attr(,"condition")
> <simpleError in optim(par = vstart, fn = fnobj, fix.arg = fix.arg, obs =
> data,     ddistnam = ddistname, hessian = TRUE, method = meth, lower =
> lower,     upper = upper, ...): non-finite finite-difference value [2]>
> Error in fitdist(k, "gamma") :
>   the function mle failed to estimate the parameters,
>                 with the error code 100
> >
>
>

Any idea of why this is happening?

Best regards,

Paul

	[[alternative HTML version deleted]]

