dgrtwo / empirical-bayes-book

Introduction to Empirical Bayes: Examples from Baseball Statistics
Other
189 stars 76 forks source link

Error in max likelihood est program in Sec 3.2? #14

Open ghost opened 7 years ago

ghost commented 7 years ago

I'm running into an error message when I run the log-likelihood and max likelihood programs in section 3.2. It reads: "Error in is.nan(x) : default method not implemented for typ 'list'." When I rerun it with Debug, it says: "Called from: VGAM::dbetabinom.ab(x, total, alpha, beta, log = TRUE)".

It may have to do with compatibility with different versions of R. I am running 3.3.3.

Any idea how to solve it? Thanks CHris Green Toronto