[R] nlminb doesn't converge and produce a warning
Ravi Varadhan
rvaradhan at jhmi.edu
Fri Jan 21 19:26:52 CET 2011
Hi,
It is indeed annoying that each optimization code has different names for the parameters that control the behavior of the algorithms. This is one of the reasons that we have developed "optimx" - to unify the calling convention for the various algorithms. You can call the optimization algorithm of your choice without having to worry about the names of the control parameters.
Ravi.
-------------------------------------------------------
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins University
Ph. (410) 502-2619
email: rvaradhan at jhmi.edu
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Karl Ove Hufthammer
Sent: Friday, January 21, 2011 6:48 AM
To: r-help at stat.math.ethz.ch
Subject: Re: [R] nlminb doesn't converge and produce a warning
kamel gaanoun wrote:
> I use nlminb like this :
> res1<-nlminb(vect, V, lower=c(rep(0.01, 12), rep(0.01, 3), rep(-Inf,
> n-15)), upper=c(rep(Inf, 12), rep(0.99, 3), rep(Inf, n-15)), control =
> list(maxit=1000) )
>
> and that's the result :
>
> Message d'avis :
> In nlminb(vect, V, lower = c(rep(0.01, 12), rep(0.01, 3), rep(-Inf, :
> unrecognized control element(s) named `maxit' ignored
Just increase the maximum number of iterations. Which you tried to do, but
didn’t succeed in, as the above warnings shows. The argument is called
‘iter.max’, not ‘max.iter’.
--
Karl Ove Hufthammer
______________________________________________
R-help at 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.
More information about the R-help
mailing list