Hi List,
I want to sample a multinomial distribution phi of latent variables l
given i, which is also used the other way round to sample i given l.
My idea is to create two distributions
phi = p(l|i)
psi = p(i|l)
of which psi is implemented by a logical node
phi[i,1:L] ~ ddirch(phi.param[])
for(i in 1:N) {
psi[l,i] <- phi[i,l] / sum(phi[1:I,l])
}
Compilation and GenInit works fine, but during the first iteration of
updating I get the following error message (on the status bar)
"update error for node phi[1,1] algorithm UpdaterDirichletpriot.Updater
error can not sample node too many iteraitions"
Any ideas on what exactly the problem is? Is this construction supported
by OpenBUGS?
I am using OpenBUGS 2.2.0 (Feb06) on WinXP.
Thanks in advance,
Laura
--
------------------------------------------------------
Laura Dietz, Dipl.-Inform.
PhD Candidate
Knowledge Management Group
Department of Computer Science
Humboldt-Universität zu Berlin
Rudower Chaussee 25, 12489 Berlin
E-mail: [log in to unmask]
http://www.informatik.hu-berlin.de/~dietz
http://www.informatik.hu-berlin.de/wm
------------------------------------------------------
-------------------------------------------------------------------
This list is for discussion of modelling issues and the BUGS software.
For help with crashes and error messages, first mail [log in to unmask]
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
|