[R] HELP: BRUGS/WinBUGS/RBUGS Response is a combination of random variables

Richard.Cotton at hsl.gov.uk Richard.Cotton at hsl.gov.uk
Mon Jul 20 11:23:34 CEST 2009


> Is there anyone know if BUGS language allows the combination of 
> variables as response

> It seems doesn't work in my model. The problem is between two ######.

> >  modelCompile(numChains=1)
> multiple definitions of node bm[1]

>                  ###############
>                  bm[iter] <-  inprod(biomarker[iter,1:4], bta[1:4])
>                  bm[iter] ~ dnorm(bmu[iter], sdbm.precision);
>                  ###############

The problem seems to be that you've defined bm[iter] as a logical node 
(<-), then redefined it as a stochastic node (~).  If you need more help, 
try the BUGS mailing list.  (See 
http://www.mrc-bsu.cam.ac.uk/bugs/overview/list.shtml)

Regards,
Richie.

Mathematical Sciences Unit
HSL


------------------------------------------------------------------------
ATTENTION:

This message contains privileged and confidential inform...{{dropped:22}}




More information about the R-help mailing list