From x.sole at iconcologia.net  Mon May  8 12:06:57 2006
From: x.sole at iconcologia.net (x.sole at iconcologia.net)
Date: Mon,  8 May 2006 12:06:57 +0200 (CEST)
Subject: [Rd] Inconsistency in AIC values for glm with family poisson
	(PR#8840)
Message-ID: <20060508100657.87099C9E8@slim.kubism.ku.dk>

Full_Name: Xavier Sol?
Version: 2.3.0
OS: Windows XP SP2
Submission from: (NULL) (213.151.99.160)


#When computing AIC for one of the models shown in ?glm we get an inconsistent
AIC value. We also get the same wrong value if we use "extractAIC" o "AIC"
functions.

example(glm)

glm.D93

extractAIC(glm.D93)

#AIC of this model should be 15.129 (residual deviance + 2*effective degrees of
freedom), but the AIC which R returns is 56.76. Function extractAIC returns the
right number of effective degrees of freedom (5), but anyway seems to fail in
calculating the correct AIC value.



[Rd] Inconsistency in AIC values for glm with family poisson (PR#8840)
x.sole at iconcologia.net