[R] Problems with BIC (Bayesian Information Criterion)

From: Christian Jones <ccatj_at_web.de>
Date: Mon 31 Oct 2005 - 02:03:21 EST

Hi,
I would like to compare several Generalized Linear Models on the basis of BIC. My models have a binary response variable and are fitted with the glm function. AIC works well, not so BIC I tried:
testBIC<-glm(y~x1+x2+x3,binomial)
> BIC(testBIC)

Error in log(x) : Non-numeric argument to mathematical function
>BIC(logLik(testBIC))

Error in log(x) : Non-numeric argument to mathematical function

I guess "logLik" does not do the trick because the glm class has already methods for this function. Is there anybody who can help me?
Thanks Christian

Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Oct 31 03:13:48 2005

This archive was generated by hypermail 2.1.8 : Mon 31 Oct 2005 - 09:18:26 EST