Writing conditional distribution in the WinBUGS using R2WinBUGS package in R
问题 For the following data, mydata ID Y x z 1 1 5.302956 1 1 2 1 3.358249 2 1 3 1 4.976734 3 1 4 1 4.290459 4 1 5 1 0.000000 5 0 6 2 5.975351 1 1 7 2 6.620773 2 1 8 2 8.045909 3 1 9 2 7.378384 4 1 10 2 6.908755 5 1 11 2 8.672657 6 1 12 2 8.284252 7 1 13 2 8.455531 8 1 14 2 7.415175 9 1 15 2 8.634265 10 1 16 3 7.356993 1 1 17 3 6.607598 2 1 18 3 0.000000 3 0 19 3 0.000000 4 0 20 3 0.000000 5 0 21 3 0.000000 6 0 22 3 0.000000 7 0 23 3 0.000000 8 0 24 3 6.398595 9 1 25 3 6.580639 10 1 26 4 5.525104