If you want this resolved, you are going to have to provide the full
function in a reproducible example. Nearly a half-century with this type
of problem suggests a probability of nearly 1 that nlogL will be poorly
set up.
JN
On 14-12-03 06:00 AM, r-help-requ...@r-project.org wrote:
Message: 14
Date: Tue, 2 Dec 2014 12:38:03 -0300
From: Alejandra Chovar Vera<alejandra.cho...@gmail.com>
To:r-help@r-project.org
Subject: [R] help
Message-ID:
<cagw2uadzyafdcnvyz82qkb127fxra0rvuv9z3mdvu1bp7mu...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
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
______________________________________________
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.