Dear r-helpers,
I'm experiencing some problems in fitting a maximum likelihood binomial
model to some of my data. The error is in optim, which founds: Error in
optim(par = c(0.2, 0.5), fn = function (p) :
initial value in 'vmmin' is not finite
Yes, I know it's a common problem, and I've carefully searched and readed
all the posts about the issue, But, I can't find a solution. It looks like
it will be a small piece of my code, but I'm unable to find it. Maybe anyone
could help me...
Here is my data and the code:
library(bbmle)
Loading required package: stats4
Loading required package: numDeriv
Loading required package: lattice
Loading required package: MASS
Warning message:
package 'bbmle' was built under R version 2.12.2