Re: [R] Maximisation of likelihood of a discrete parameter

2003-07-02 Thread Spencer Graves
You may already know this, but in case you don't get a canned solutions, I'll mention that this is an integer programming problem. If you can first get a solution that it is not an integer, then you do an exhaustive search in a neighborhood near the maximum. In one dimension, this is easy:

[R] Maximisation of likelihood of a discrete parameter

2003-07-02 Thread Anon.
Moi! I have a problem where I want to find the ML estimate of a discrete parameter. I just want a function like optim that finds the max/min value for a function. Does anyone know of such a function for R? Thanks. Bob -- Bob O'Hara Rolf Nevanlinna Institute P.O. Box 4 (Yliopistonkatu 5) FIN