[R] Estimates at each iteration of optim()?

Peter Dalgaard p.dalgaard at biostat.ku.dk
Mon Apr 23 08:46:47 CEST 2007


DEEPANKAR BASU wrote:
> I am trying to maximise a complicated loglikelihood function with the "optim" command. Is there some way to get to know the estiamtes at each iteration? When I put "control=list(trace=TRUE)" as an option in "optim", I just got the initial and final values of the loglikelihood, number of iterations and whether the routine has converged or not. I need to know the estimate values at each iteration.
>
>   
It might help if you actually _read_ the description of the trace 
control parameter (hint: it is not an on/off switch) in ?optim... And, 
as it says, this is method dependent, so you may have to study the 
source code.

> Deepankar
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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