gpt4 book ai didi

r - 估计威 bool 密度参数(错误 : "...initial value in ' vmmin' is not finite")

转载 作者:行者123 更新时间:2023-12-04 18:52:03 34 4
gpt4 key购买 nike

我正在尝试估计数据集的形状和规模。
我使用了两种不同的方法,并且都收到了错误消息:

首先,我尝试使用 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

该链接中的一些观点:

  • 数据中的零会导致问题
  • 使用 lmom 包中的 pelwei() 函数
  • 关于r - 估计威 bool 密度参数(错误 : "...initial value in ' vmmin' is not finite"),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4656592/

    34 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com