Help with BUGS model



This is a quote from an article by W. DuMouchel et al. 1999 "BAYESIAN
DATA MINING IN LARGE FREQUENCY TABLES":
[Quote]:
.... to achieve the interpretability of the relative risk measures but
also to adjust properly for sampling variation...Assume that each
observed count Nij is a draw from a Poisson distribution with unknown
mean mu[i], and that interest centers on the ratios lambda[i]= mu[i]/
E[i]. But rather than treat the M values of lambda[i] as unrelated
constants, assume that each lambda is drawn from a common prior
distribution. This distribution is assumed be a mixture of two gamma
distributions.
....the marginal distribution of each N is a mixture of negative
binomial distributions; and second, the
posterior distribution of each lambda is a mixture of two gamma
distributions with modified parameters:
Prob(N = n) = P f(n; a1, b1, E) + (1 - P) f(n; a2, b2, E)
with f(n; a, b, E) = (1 + b/E)^-n (1 + E/b)^-a Gamma(a + n) /
Gamma(a)n!
[End Quote]

I have is values of N and E. Now I have tried to perform it in winBUGS
using the model below that assumes lambda is drawn from one gamma
distribution (but not a mixture):

model
{
for (i in 1:K)
{
N[i]~ dpois( mu[i] )
mu[i]<- lambda[i]*E[i]
lambda[i] ~ dgamma( a, b )
}
a ~dunif(0.000001, 100)
b ~ dunif(0.000001, 100 )
}

It works OK I can have an estimate of lambdas and the parameters a and
b but how can I modify my BUGS model to have lambdas drawn from the
mixture of two gamma distributions like the extract above states?
Thanks

.



Relevant Pages

  • Re: On coverage probability of Confidence interval
    ... > because I know the underlying distribution, ... > of lambda through probability plot. ... > Using bootstrapping (Parametric type; since I know that it follows ... Now the issue is HOW to calculate the coverage ...
    (sci.stat.math)
  • Re: order statistics/life testing problem
    ... follow an exponential distribution with parameter ... Here lambda is the reciprocal of the mean. ... meaning the conditional expectation of the largest ... exponentials plus t*. ...
    (sci.stat.math)
  • Re: "Robbins lemma"?
    ... >If X is a random variable with a Poisson distribution with ... >expectation lambda, and g is any function for which the ... The way he used it was in a situation where lambda is ... If one is computing a Bayes estimate with squared error ...
    (sci.math.research)
  • Re: scalling of poisson distribution
    ... then the mean is lambda for period 2t ... I think that the fact that the distribution is discrete rather than ... dataset where a binomial distribution fit the data for healthcare visits ... Most "real data" regarding annual visits will have a ...
    (sci.stat.math)
  • Re: scalling of poisson distribution
    ... then the mean is lambda for period 2t ... I think that the fact that the distribution is discrete rather than ... dataset where a binomial distribution fit the data for healthcare visits ... Most "real data" regarding annual visits will have a ...
    (sci.stat.math)