Hello All,

 

For some reason, OpenBUGS has trouble sampling from a multivariate normal distribution with boundary constraints.

 

The snippet of code below runs in WinBUGS but it does not run in OpenBUGS.

 

for (i in 1:n) {

    Z[i,1:2]        ~ dmnorm(mu[i,1:2],

                             Omega[1:2,1:2]) I(lo[i,1:2],up[i,1:2])

 

The upper and lower bounds (lo[i,1:2],up[i,1:2]) are read in as data.

 

Any suggestions.

 

Sincerely,

 

Ziad Elmously

 

 



Kantar Disclaimer ------------------------------------------------------------------- This list is for BUGS users to support each other, ask questions or share ideas. To mail the BUGS list, mail to [log in to unmask] Before mailing, please check the archive at www.jiscmail.ac.uk/lists/bugs.html Please do not mail attachments to the list. To leave the BUGS list, send LEAVE BUGS to [log in to unmask] If this fails, mail [log in to unmask], NOT the whole list