[R] mle from stats4

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Oct 6 19:00:14 CEST 2009


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




More information about the R-help mailing list