I would guess -- we don't have a reproducible code -- that you have an undefined function value. Since nmkb is entirely in R to my knowledge, you could simply take the source code and modify it to display the elements in the test that cause the trouble. Then load the source rather than using library(dfoptim).

Alternatively, add to your objective function some code to display the parameters before evaluation and the resulting value that is returned. Messy but pretty effective to reveal if and where the function is giving trouble.

JN


On 12-11-06 06:00 AM, r-help-requ...@r-project.org wrote:
Date: Mon, 5 Nov 2012 01:56:30 -0800 (PST)
From: MMar86<marcial.mess...@gmail.com>
To:r-help@r-project.org
Subject: [R] Error message in nmkb()
Message-ID:<1352109390759-4648459.p...@n4.nabble.com>
Content-Type: text/plain; charset=UTF-8

Hallo together,
I am trying to use the nmkb() optimizer and I have problems using the
function, as it causes the following error message
Fehler (error)* in while (nf < maxfeval & restarts < restarts.max & dist >
ftol &  :
   Fehlender Wert (missing value)* , wo (where)* TRUE/FALSE n?tig ist (is
required)*
*translation

Do I need  to adjust the control ?
my.optpar3<-nmkb(par=par.start,fn=my.loglike.normal,lower=constLo,upper=999,
control=list(restarts.max=9))

If you need more info, please let me know.
I would appreciate some help, thank you very much.

Best,
Marcial

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to