I am using mle as a wrapper from optim( ). How would I extract the convergence code, to know that optim( ) converged properly? Thanks, Stephen Collins, MPP | Analyst Global Strategy | Aon Benfield [[alternative HTML version deleted]]
Stephen Collins-6 wrote:> > I am using mle as a wrapper from optim( ). How would I extract the > convergence code, to know that optim( ) converged properly? > >library(stats4) example(mle) slotNames(fit1) fit1 at details fit1 at details$convergence -- View this message in context: http://www.nabble.com/mle-from-stats4-tp25772337p25772668.html Sent from the R help mailing list archive at Nabble.com.
Stephen Collins wrote:> I am using mle as a wrapper from optim( ). How would I extract the > convergence code, to know that optim( ) converged properly?The return value from optim is contained in the details slot, so > fit at details$convergence [1] 0 -- O__ ---- Peter Dalgaard ?ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907