[R] Problems with BIC (Bayesian Information Criterion)

Christian Jones
Sun, 30 Oct 2005 15:03:21 -0000

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]]