[Rd] BIC doesn't work for glm(family=binomial()) (PR#8208)

jusung@andrew.cmu.edu jusung at andrew.cmu.edu
Sun Oct 16 06:07:53 CEST 2005


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())));



More information about the R-devel mailing list