楼主: beijingdizheng
6556 3

R中运行下列语句一直提示错误 求高手解惑 [推广有奖]

  • 8关注
  • 8粉丝

已卖:472份资源

硕士生

78%

还不是VIP/贵宾

-

威望
0
论坛币
4443 个
通用积分
4.0200
学术水平
27 点
热心指数
25 点
信用等级
17 点
经验
4577 点
帖子
101
精华
0
在线时间
240 小时
注册时间
2012-10-9
最后登录
2022-6-21

楼主
beijingdizheng 发表于 2014-2-25 11:44:23 |AI写论文
5论坛币
R中运行下列语句一直提示错误 求高手解惑

m0<-lme(height~age+I(age^2)+I(age^3),Loblolly,random=list(Seed=~age+I(age^2)+I(age^3)))
Error in lme.formula(height ~ age + I(age^2) + I(age^3), Loblolly, random = list(Seed = ~age +  :
  nlminb problem, convergence error code = 1
  message = iteration limit reached without convergence (10)

最佳答案

vincentwbb 查看完整内容

#国外某论坛上的解决方案,达到循环限制仍未收敛,用lmeControl修改最大循环限制(具体见?lmeControl),代码如下: #Try ?lmeControl #Setting the maxIter, msMaxIter, niterEM, and/or msMaxEval arguments to higher values than the default #may fix this. #Capture the output from lmeControl to an object and then pass that object to the control #argument of lme. ctl
关键词:求高手 message problem without error Error

本帖被以下文库推荐

沙发
vincentwbb 发表于 2014-2-25 11:44:24
#国外某论坛上的解决方案,达到循环限制仍未收敛,用lmeControl修改最大循环限制(具体见?lmeControl),代码如下:
#Try ?lmeControl
#Setting the maxIter, msMaxIter, niterEM, and/or msMaxEval arguments to higher values than the default #may fix this. #Capture the output from lmeControl to an object and then pass that object to the control #argument of lme.
ctl <- lmeControl (msMaxIter=100)
m0 <- lme(height~age + I(age^2) + I(age^3),Loblolly,
          random=list(Seed=~age+I(age^2)+I(age^3)),
          correlation=corCAR1(form=~age|Seed), control=ctl)
m0
plot (m0)
已有 1 人评分经验 论坛币 收起 理由
ermutuxia + 10 + 10 精彩帖子

总评分: 经验 + 10  论坛币 + 10   查看全部评分

藤椅
lisi_bo 学生认证  发表于 2014-3-26 01:05:02
nlminb problem, convergence error code = 1
  message = iteration limit reached without convergence (9)
楼主,我也遇到同样问题,你的解决了吗

板凳
swztar 学生认证  发表于 2022-9-3 20:48:54
如果模型无法收敛,可改变control设置。
收敛问题可以通过更改模型迭代限制(maxIter)或更改模型优化器(opt)来解决。例如`control = list (maxIter = 100, opt = "optim")`将把最大迭代次数改为100,优化器改为optim

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-20 12:13