Skip to content
Prev 273696 / 398502 Next

sum of functions

On 6 October 2011 16:20, Dimitris.Kapetanakis
<dimitrios.kapetanakis at gmail.com> wrote:
loglik <- function(b) sapply( 1:N, loglik.i, b = b )

Please note that logLik( b ) returns a *vector* of the likelihood
contributions of each observation. maxLik() takes the sum of the
elements of this vector automatically. If logLik( b ) returns a vector
of the likelihood contributions of each observation (rather than just
the sum), the BHHH optimisation method can be used.

/Arne