Skip to content

Why no BIC.default function?

4 messages · Kevin Wright, Brian Ripley, Douglas Bates

#
I'm using R 2.0.1.

I looked in the email archives but didn't see anything on this topic.

I've noticed a surprising (to me) difference between AIC and BIC:
[1] AIC.default* AIC.logLik*
[1] BIC.gls*    BIC.lm*     BIC.lme*    BIC.lmList* BIC.logLik* BIC.nls*

The BIC.gls BIC.lm BIC.lme BIC.lmList and BIC.nls functions appear to have
exactly the same definition.  (I didn't check with 'diff' though.)

Would it make sense to treat BIC similarly to AIC and have just
BIC.default and BIC.logLik?

Kevin Wright
#
R does not have a BIC S3 generic function: it is in package nlme!
(There is one for S4 classes in package stats4.)

So this is a question for the nlme maintainer.
On Mon, 18 Apr 2005 kwright@eskimo.com wrote:

            

  
    
#
kwright@eskimo.com wrote:
Yes.  We will do so.
#
Sorry, I should have noticed that.  Maybe my question should have been:

Since the stats package has generics for logLik and AIC, could it include
a generic for BIC?

Kevin Wright