Franco,
You can provide lower and upper bounds on the parameters if you use optim
with method="L-BFGS-B".
Hth, Ingmar
From: francogrex <francogrex at mail.com>
Date: Fri, 5 Jan 2007 04:54:50 -0800 (PST)
To: <r-help at stat.math.ethz.ch>
Subject: [R] maximum likelihood estimation of 5 parameters
Hi Guys, it would be great if you could help me with a MLE problem in R.
I
am trying to evaluate the maximum likelihood estimates of theta = (a1,
b1,
a2, b2, P) which defines a mixture of a Poisson distribution and two
gamma
prior distributions (where the Poisson means have a gamma
distribution,
actually 2 gammas and P is the mixing factor). The likelihood