1.winbug code如果有错误的话,是不是在模型检测这一步就不能通过?
yes
2.是不是数据输入方式不对?
恩, 不确定, list头一行能看懂
后面就不明白了
x1[] y[ ,1] y[ , 2] y[ ,3] y[ ,4] y[ ,5] ni[]
1 4 23 45 22 2 96
0 2 22 54 29 3 110
1 14 119 180 54 6 373
0 1 22 35 11 3 72
1 13 20 24 10 1 68
0 7 16 17 10 3 53
1 21 106 175 62 17 381
0 8 24 73 52 13 170
1 3 14 19 3 0 39
0 2 13 18 7 1 41
END
看到code里有logit link
Q[j,k] 只能介于0,1之间
可是看看winbugs的错误提示,(虽然巨难懂)
如果发现Inf
貌似是prior(?数据)导致Q出了[0,1]
PS, 我一般是在R里把数据编辑成list, 然后写到txt文件, 在winbugs直接打开就好了
R里的function是bugs.data
About Priors,you may find this paper helpful
http://projecteuclid.org/DPubS?service=UI&version=1.0&verb=Display&handle=euclid.aoas/1231424214