I am trying to get the AIC of a model in GLM. It’s just a simple regression model with an identity link function. Yet, the call to
aic(mod) says that my model is not a subtype of StatisticalModel.
Shouldn’t a GLM be a subtype of a StatisticalModel? Is there something I have missed? Do I, perhaps, need to implement a new method for aic?
Many thanks in advance,