简体   繁体   English

负二项式,泊松伽马混合 winbugs

[英]Negative binomial , Poisson-gamma mixture winbugs

Winbugs trap error Winbugs 陷阱错误

    • model { for (i in 1:5323) { Y[i] ~ dpois(mu[i]) # NB model as a Poisson-gamma mixture mu[i] ~ dgamma(b[i], a[i]) # NB model as a poisson-gamma mixture a[i] <- b[i] / Emu[i] b[i] <- B * X[i] Emu[i] <- beta0 * pow(X[i], beta1) # model equation } # Priors beta0 ~ dunif(0,10) # parameter beta1 ~ dunif(0,10) # parameter B ~ dunif(0,10) # over-dispersion parameter } X[] Y[] 1.5 0 2.9 0 1.49 0 0.39 0 3.89 0 2.03 0 0.91 0 0.89 0 0.97 0 2.16 0 0.04 0 1.12 1s 2.26 0 3.6 1 1.94 0 0.41 1 2 0 0.9 0 0.9 0 0.9 0 0.1 0 0.88 1 0.91 0 6.84 2 3.14 3 End ```
  • This is just a sample of the data, the model question is coming from Ezra Hauer 8.3.2, the art of regression of road safety, the model is providing an **error undefined real result.这只是数据样本,model 问题来自 Ezra Hauer 8.3.2,道路安全回归的艺术,model 提供了一个**错误未定义的真实结果。 ** **

  • The aim of model is to fully Bayesian and a one step model and not use empirical bayes. model 的目标是完全贝叶斯和一步 model 而不是使用经验贝叶斯。

  • The results should be similar to MLE where beta0 is 1.65, beta1 0.871, overdispersion is 0.531结果应类似于 MLE,其中 beta0 为 1.65,beta1 0.871,过度离散为 0.531

  • X is the only variable and y is actual collision, So X cannot be zero or negative, while y cannot be lower than zero, if the model in solved as Poisson gamma mixture using maximum likelihood then it can be created X 是唯一的变量,y 是实际碰撞,所以 X 不能为零或负数,而 y 不能小于零,如果使用最大似然将 model 求解为泊松伽马混合,则可以创建它

  • How can I make this model work我怎样才能使这个 model 工作

  • Solving an error in winbugs?解决 winbugs 中的错误?

the data is in excel, the model worked fine when I selected the biggest 1000 observations only.数据在 excel 中,当我只选择最大的 1000 个观测值时,model 工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM