Dear R I have a big problem in my estimation process, I try to estimate my likelihood function with the option "optim", but R give me this message "Error en optim(par = valores$par, nlogL, method = "BFGS", hessian = T, :
valor inicial en 'vmmin' no es finito " I know this is because my initial values are out the interval, but i try with different initial values and the problem persist. I don't know what can i do. I have this code, to obtain my initial values: valores<- optim(c(-1,-1,1,1,1),nlogL,method="SANN",control=list(maxit=1000)) DCp <- optim(par=valores$par,nlogL,method="BFGS",hessian=T,control=list(maxit=1000)) I found in this link "http://es.listoso.com/r-help/2012-02/msg02395.html" something similar, but in this case there isn't answer. If you need more information about my code, please tell me. Sincerely Alejandra [[alternative HTML version deleted]] ______________________________________________ R-help@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.