Skip to content
Prev 267213 / 398502 Next

Beta fit returns NaNs

On 2011-08-01 01:33, baxy77 wrote:
Those warnings are from optim(). You probably don't have
to worry about them.

I usually use fitdistr() in the MASS package. But it
will require reasonable start values.

To avoid the warnings, you could try using the parameter
estimates from your fitdist(vectNorm, "beta") call as
start values and re-run fitdist() with those values,
and you might also set the optim method to BFGS
(which, BTW, is the default in fitdistr()).

  library(fitdistrplus)
  fitdist(vectNorm, "beta",
     start = list(shape1 = 2.15, shape2 = 810),
     optim.method = "BFGS")

Peter Ehlers