Re: How to find the likelihood functions?



Hi, I am writing a winBUGS code and I need to specify
the likelihood
for the gamma distribution and I am specifying it as
the pdf:
(pow(b,a)/(exp(loggam(a)))*(exp(-b*lambda[i]))*pow(lam
bda[i],(a-1)))

But it is not accepting it although I know that I
could use the pdf in
R to estimate the parameters by MLE. There must be a
shorter form that
is the real likelihood function, (I know that for the
normal
distribution the likelihood is much shorter than the
pdf and it is
accepted by winBUGS).
Is there like a webpage where the likelihood
functions are displayed?

PS: I know that BUGS has a dgamma function and that I
do not need to
specify the likelihood function, but it is for some
other purpose I am
doing that so that I can afterwards generate a new
distribution which
is a mixture of two gamma distributions.

Thanks.



If Xi ~ Gamma(k,b), i = 1, ..., N, where k is the shape parameter and a is the scale parameter, then the likelihood function of k and b is

L(k,b) = [Prod(xi)^(k-1)]*[exp(-Sum(xi)/b]/[b^(N*k)*Gamma(k)^N]

Jack
.



Relevant Pages

  • Re: How to find the likelihood functions?
    ... for the gamma distribution and I am specifying it as the pdf: ... But it is not accepting it although I know that I could use the pdf in ... specify the likelihood function, but it is for some other purpose I am ...
    (sci.stat.math)
  • How to find the likelihood functions?
    ... I am writing a winBUGS code and I need to specify the likelihood ... for the gamma distribution and I am specifying it as the pdf: ...
    (sci.stat.math)
  • Re: likelihood greater than 1, beginner
    ... Rune Allnor wrote in message ... ways) the maximum of the likelihood function. ... Function, PDF. ...
    (comp.soft-sys.matlab)
  • Re: Comparing fractions (or proportions)
    ... Jack´s response: ... their repective contributions to variance estimate ... What you have to do is to write out the likelihood ... The likelihood function is zero whenever ...
    (sci.stat.math)
  • Re: likelihood greater than 1, beginner
    ... Function, PDF. ... I am sorry Rune if I am still missing something and thank ... values of the maximum likelihood estimators. ... function can be interpreted as a probability. ...
    (comp.soft-sys.matlab)