楼主: snowwhite@HXH
4514 2

[本週專題]怎样判断模型收敛? [推广有奖]

  • 1关注
  • 0粉丝

初中生

38%

还不是VIP/贵宾

-

威望
0
论坛币
28 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
68 点
帖子
9
精华
0
在线时间
14 小时
注册时间
2014-6-10
最后登录
2014-7-2

楼主
snowwhite@HXH 发表于 2014-6-26 11:07:59 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
模型运行成功,怎样判断是否收敛呢?
知道监测变量服从正态分布,不知道mu和tau,这种情况怎么处理,在程序中该怎么表达?
因变量可以作为随机变量(模型参数)进行监测吗?这样做怎么提示“undefined real result”?
请知道的给解释下,万分感谢!!!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:判断模型 Undefined Defined DEFINE Result 正态分布 模型

沙发
Lisrelchen 发表于 2014-6-26 21:05:59
The Error message 'undefined real result' indicates numerical overflow. Possible reasons include:
  • Initial values generated from a 'vague' prior distribution may be numerically extreme - specify appropriate initial values;
  • Numerically impossible values such as log of a non-positive number - check, for example, that no zero expectations have been given when Poisson modelling;
  • Numerical difficulties in sampling.


Possible solutions include:
  • Better initial values;
  • More informative priors - uniform priors might still be used but with their range restricted to plausible values;
  • Better parameterisation to improve orthogonality;
  • Standardisation of covariates to have mean 0 and standard deviation 1.

Probit models are particularly susceptible to this problem, i.e. generating undefined real results. If a probit is a stochastic node, it may help to put reasonable bounds on its distribution, e.g.

probit(p) <- delta
delta ~ dnorm(mu, tau)I(-5, 5)
This trap can sometimes be escaped from by simply clicking on the update button. The equivalent construction
   p <- phi(delta)
may be more forgiving.

藤椅
jenson2023 发表于 2014-7-19 22:08:11
bugs确实很难学啊

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

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