Error in optim : non-finite value supplied by optim

Samtschan
Samtschan Registered Posts: 3 ✭✭✭
edited July 16 in Using Dataiku

Hi All,

I am fitting a zero-inflated Poisson model using the R recipe. I am getting this error message below, can someone explain why is this and how can I fix it, please?

Error in optim(fn = loglikfun, gr = gradfun, par = c(start$count, start$zero, : non-finite value supplied by optim
Traceback:
 optim(fn = loglikfun, gr = gradfun, par = c(start$count, start$zero, 
 .     if (dist == "negbin") log(start$theta) else NULL), method = method, 
 .     hessian = hessian, control = control)  

Answers

Setup Info
    Tags
      Help me…