How we can solve this problem: error in db choice: Error in optim(ini, fn = dbLL, method = "BFGS", hessian = TRUE, dvar = yvar, : initial value in 'vmmin' is not finite In addition: Warning message: glm.fit: algorithm did not converge

I think we need to see your code and some sample data. See
FAQ Asking Questions

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here between
```

```