OpenBUGS
Posts  1 - 1  of  1
ansel
I am only new to OpenBugs. The distribution I am going use is not on the distribution list of OpenBugs. And I have no background in programming. There is this dloglike function in OpenBugs if you want to create a custom model. You just need to get the log transformation of a certain distribution and you're already set.

Here is a picture of the distribution,it's a **Trivariate Poisson model with covariance structure** developed by Karlis Dimitris:

![enter image description here][1]

First I define the upper bounds for the 3 summations.

Since the lower bound for values of k,r and s are zero, I create a dummy data whose values are (0,1,2,3,4) for both k,r and s. Then I use the indexing method to trace the value of k,r and s. Then I use sum function whose upper bound is defined earlier.

But when i compile it i get error an error message(***variable s1 is not defined***).

Save
Cancel
Reply
 
x
OK