> Full_Name: Xavier Solé
> Version: 2.3.0
> OS: Windows XP SP2
> Submission from: (NULL) (22.214.171.124)
> #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.
Inconsistent with what? It seems to me that it consistently gives the
right answer, but you have not used the actual definition of AIC.
> #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.
Where do you get that from (it is not the definition of AIC)?
Did you read ?AIC, which gives the actual definition? You may also need
to review the definitions (note, plural) of `deviance'.
Please don't expect us to accept your assertions for definitions
of statistical quantities: you need to supply your credentials and
references. In this case the help page actually points out that the
quantity is not unambiguously defined.
Brian D. Ripley, [hidden email] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595