楼主: 江夏雁
2543 1

[问答] 关于fitdist 函数--是不是R语言的一个bug? [推广有奖]

  • 20关注
  • 2粉丝

朋友

教授

57%

还不是VIP/贵宾

-

威望
0
论坛币
565 个
通用积分
5.4453
学术水平
8 点
热心指数
9 点
信用等级
-4 点
经验
40942 点
帖子
843
精华
0
在线时间
613 小时
注册时间
2010-6-24
最后登录
2025-2-26

楼主
江夏雁 在职认证  发表于 2020-6-28 14:42:21 |AI写论文
6论坛币
> dd[1] 0.50 0.58 0.16 0.52 0.59 0.54 0.53 0.46> fitdist(dd, distr="beta", method = "mle",start=NULL, fix.arg=NULL)$estimate[1] Error in fitdist(dd, distr = "beta", method = "mle", start = NULL, fix.arg = NULL) :   the function mle failed to estimate the parameters,                 with the error code 1


当向量如dd时会报错,不知道是什么原因?
多谢!

最佳答案

maths_hjxk 查看完整内容

with the error code 1意思是没有收敛 这可能是迭代次数不够造成的。可以增加迭代次数或尝试初始值
关键词:bug IST fit Dis R语言
若无人伴你 愿你成你自己的太阳

沙发
maths_hjxk 发表于 2020-6-28 14:42:22
with the error code 1意思是没有收敛
这可能是迭代次数不够造成的。可以增加迭代次数或尝试初始值
  1. fitdist(dd,"beta",method="mle",control=list(maxit=1000))
复制代码
  1. fitdist(dd,"beta",method="mle",start=list(shape1=2.7,shape2=3))
复制代码

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-24 08:55