[R] mle from stats4

2009-10-06 Thread Stephen Collins
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]]

__
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.


Re: [R] mle from stats4

2009-10-06 Thread Peter Dalgaard

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

 f...@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.dalga...@biostat.ku.dk)  FAX: (+45) 35327907

__
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.


Re: [R] mle from stats4

2009-10-06 Thread Ben Bolker



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)
f...@details
f...@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.

__
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.