[R] A Question about MLE in R

J C Nash pro|jcn@@h @end|ng |rom gm@||@com
Wed Jul 22 14:48:36 CEST 2020


SANN is almost NEVER the tool to use.

I've given up trying to get it removed from optim(), and will soon give up
on telling folk not to use it.

JN

On 2020-07-22 3:06 a.m., Zixuan Qi wrote:
> Hi,
> 
> I encounter a problem. I use optim() function in R to estimate likelihood
> function and the method is SANN in the optim function.
> out <-
> optim(parm,logLik,method='SANN',hessian=T,control=list(maxit=5000000))
> 
> However, I find that each time I run the program, I will get different
> values of parameters. My initial values are same, but the number of
> iterations has reached the maximum limit. I expanded the number of
> iterations to 5 million, but it��s still wrong.
> 
> I want to know what I should do. Is anyone willing to help me? Thanks so
> much!
> 
> Best,
> Cisy
> 
> 	[[alternative HTML version deleted]]
> 
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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