Skip to content
Prev 275806 / 398506 Next

weibull fitdistr problem: optimization failed

ethan.shepherd <someguy235 <at> gmail.com> writes:
[snip]
[snip]
How about:

x <- c(4,22,26,27,44,46,83,83,122,125,129,151,153,157,171,
173,186,199,201,202,205,219,239,242,252,315,326,449,771)

hist(x)
fit2 <-fitdistr(x, 'weibull',lower=c(0.01,0.01))

hist(x,freq=FALSE,col="gray",ylim=c(0,0.004))
with(as.list(coef(fit2)),curve(dweibull(x,shape=shape,scale=scale),
     add=TRUE,col=2))