我正在尝试估计数据集的形状和规模。
我使用了两种不同的方法,并且都收到了错误消息:
首先,我尝试使用 survey
包裹:
survreg(Surv(all.ws)~1, dist="weibull")
我收到错误消息:
invalid survival times for this distribution
其次,我尝试使用
fitdistr()
功能:fitdistr(all.ws, densfun=dweibull, start=list(scale=1, shape=2))
我收到一条错误消息:
Error in optim(x=c(2.2, 2.1,1.9....:
initial value in 'vmmin' is not finite
我在做什么有什么问题?
最佳答案
谷歌搜索“fitdistr Weibull Error”显示这个确切的问题在一年前在 R-help 邮件列表中讨论过:http://r.789695.n4.nabble.com/Problems-with-fitdistr-td1334772.html
该链接中的一些观点:
关于r - 估计威 bool 密度参数(错误 : "...initial value in ' vmmin' is not finite"),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4656592/