Skip to content
Prev 157132 / 398506 Next

Error message when calculating BIC

Donald Catanzaro, PhD <dgcatanzaro <at> gmail.com> writes:
A few comments:

1. we need a little bit more information about the packages you
are using (there are BIC functions defined in several different
packages, and it seems as though you may be picking up the wrong
one); what are the results of sessionInfo() ?  [There's a chance
you're getting BIC from my package, bbmle, and that there's a
bug in it, so I'd be interested to find out]

2. Your formulae for AIC and BIC are a bit weird.
It's my understanding that

AIC = deviance+2*C
BIC = deviance+log(N)*C

so BIC = AIC-2*C+log(N)*C

where N=sample size, C=number of parameters

  (Can you give a reference for your formulae?)

 good luck,
   Ben Bolker