The EM algorithm is slow to converge at times, but every iteration is
guaranteed to increase the likelihood value. On the other hand a direct
maximisation of the I-prior likelihood may sometimes result in
ill-conditioned variance parameter due to the nature of the parameterisation
of the I-prior model. Thus, an ideal implementation is a combination of EM
and direct optimisation.
First, the EM algorithm is performed for a maximum of three iterations. This
can be changed by passing a different maxit
value to the list of
control options. The parameters are then passed to optim()
and the
negative log-likelihood is minimised. The method used for optim is
"L-BFGS-B"
, as the psi
parameter of the I-prior model needs to
be constrained to be greater than zero.