[R] bbmle "Warning: optimization did not converge"

Michael Weylandt michael.weylandt at gmail.com
Sun Nov 25 19:05:05 CET 2012



On Nov 25, 2012, at 1:52 PM, arun4 <arun.ganesh2012 at gmail.com> wrote:

> I am using the Ben bolker's R package "bbmle" to estimate the parameters of a
> binomial mixture distribution via Maximum Likelihood Method. For some data
> sets, I got the following warning messages:
> *Warning: optimization did not converge (code 1: )
> There were 50 or more warnings (use warnings() to see the first 50)*
> Also, warnings() results the following: 
> *In 0:(n - x) : numerical expression has 8 elements: only the first used
> 47: In beta(a, b) : NaNs produced*
> 
> I would like to know whether this is a serious issue? if so.. how can I
> avoid it?
> 

Likely: can you make a reproducible example so we can diagnose? dput() is helpful for plaintext data transfer. 

Michael


> thank you.
> 
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/bbmle-Warning-optimization-did-not-converge-tp4650730.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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