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(lambda[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.

.



Relevant Pages

  • Re: How to find the likelihood functions?
    ... for the gamma distribution and I am specifying it as ... could use the pdf in ... is the real likelihood function, ...
    (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)
  • Re: gamfit and zero values
    ... gamfit does maximum likelihood estimation. ... wouldn't have a gamma distribution but you wouldn't be systematically ...
    (comp.soft-sys.matlab)
  • Creating a Likelihood Function
    ... I'm trying to estimate a QGARCH-Mmodel via maximum likelihood ... I have one 1355x1 matrix of data (which is log excess returns on ... %Here I'm trying to specify the inputs: the parameters in the x matrix ... the variance function h and the ...
    (comp.soft-sys.matlab)
  • Re: Isnt the Frequentist a subset or special case of Bayesianist?
    ... > From, the pdf of a ... >For a binomial, with r successes and n trials, the likelihood is ... >The posterior is the product of these, ...
    (sci.stat.math)