From jusung at andrew.cmu.edu  Sun Oct 16 06:07:53 2005
From: jusung at andrew.cmu.edu (jusung@andrew.cmu.edu)
Date: Sun, 16 Oct 2005 06:07:53 +0200 (CEST)
Subject: [Rd] BIC doesn't work for glm(family=binomial()) (PR#8208)
Message-ID: <20051016040753.8F9F7868A@slim.kubism.ku.dk>

Full_Name: Ju-Sung Lee
Version: 2.2.0
OS: Windows XP
Submission from: (NULL) (66.93.61.221)


BIC() requires the attribute $nobs from the logLik object but the logLik of a
glm(formula,family=binomial()) object does not include $nobs.  Adding
attr(obj,'nobs') = value, seems to allow BIC() to work.

Reproducing the problem:
library(nmle);
BIC(logLik(glm(1~1,family=binomial())));



[Rd] BIC doesn't work for glm(family=binomial()) (PR#8208)
jusung@andrew.cmu.edu