OpenBUGS - Variable is not defined

前端 未结 1 1831
星月不相逢
星月不相逢 2021-01-25 08:09

I\'m using the following code in OpenBUGS to perform an analysis:

model
{
for(i in 1:467)
{
probit(p[i])<-gamma0+gamma1*drug[i]+gamma2*CD41[i]
R[i]~dbern(p[i]         


        
相关标签:
1条回答
  • 2021-01-25 08:33

    Are you sure you are passing the vector variable CD41 correctly to your dataList?

    If are using R, try to call CD41<-as.vector(CD41) before passing it to OpenBUGS. Remember that 1 column matrix and a vector are different things for both BUG and for R.

    0 讨论(0)
提交回复
热议问题