Skip to content
Prev 256851 / 398506 Next

MLE where loglikelihood function is a function of numerical solutions

On 14-04-2011, at 09:00, Kristian Lind wrote:

            
Huh?
If you define zz <- function(x) {...} x is an argument which must be specified when using the function.
What kind of problem?. Why don't you then do (parameters and outmat already known globally)

          f[i] <- -1/T*sum(log(transdens(parameters = parameters, x = x))-log(Jac(outmat=outmat, x2=x2)))

You should pass the arguments used by the optimizer in calling your likelihood function to the functions you defined. That way f[] will depend on x and x2 and so will the likelihood.
Is the mean  a likelihood?

Berend