由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - WINBUG 问题 - expected variable name
相关主题
expected multivariate node--WINBUGS这段R logistic regression code有没有问题?
WINBUG initials请教:怎么能把Logistic regression的OR转化成probablity
【求助】JAGS code for model specificationask a logit regression using spss (interaction)
winbugs求助请教一个categorical dependent variable 的问题
Winbugs 求助, 要崩溃了...请教大家这个数据应该用什么统计模型
A Model question, urgent please!!Please take a look at this
急问:用stata或R算predicted probabiltiy (logistic regressi菜鸟的WINBUGS问题
Wilcoxon rank sum test与logistic regression结果不同?再问multinomial logit
相关话题的讨论汇总
话题: dind1话题: dind2话题: winbug话题: nwin1话题: nwin2
进入Statistics版参与讨论
1 (共1页)
s**u
发帖数: 383
1
刚开始学WINBUG, 写了个小程序, model 问题, 但是load data 时说 expected
variable name. 请问哪里出错了. 谢谢.
model {
for (i in 1:9) {n[i] <- nwin1[i] + nwin2[i]
winn1[i] ~dbin(p[i],n[i])
logit(p[i]) <- d[dind1[i]]-d[dind2[i]]}
for ( i in 1:2) {d[i] ~ dnorm(0, 0.001)}
for ( i in 4:5) {d[i] ~ dnorm(0, 0.001)}
d[3] <-0
}
list (dind1 = c(1,1,1,1,2,2,2,3,4),
dind2 = c(2,3,4,5,3,4,5,5,5),
nwin1 = c(9,12,6,27,9,12,12,2,2),
nwin2 = c(10,2,3,2,5,3,3,0,4))
list(d =c(0, 0, NA,0,0))
l*********s
发帖数: 5409
2
logit(p[i]) <- d[dind1[i]]-d[dind2[i]]}
you probably should put this into another loop; logit probably shall
not be entered on the left; and din2[i] shall not appear on the right.
1 (共1页)
进入Statistics版参与讨论
相关主题
再问multinomial logitWinbugs 求助, 要崩溃了...
[合集] Variable selection with 2000 + variables.A Model question, urgent please!!
one statistic interview question急问:用stata或R算predicted probabiltiy (logistic regressi
variable and covariate 的区别?Wilcoxon rank sum test与logistic regression结果不同?
expected multivariate node--WINBUGS这段R logistic regression code有没有问题?
WINBUG initials请教:怎么能把Logistic regression的OR转化成probablity
【求助】JAGS code for model specificationask a logit regression using spss (interaction)
winbugs求助请教一个categorical dependent variable 的问题
相关话题的讨论汇总
话题: dind1话题: dind2话题: winbug话题: nwin1话题: nwin2