Computing AIC on a Validation Sample
This afternoon, we’ve seen in the training on data science that it was possible to use AIC criteria for model selection. __ library(splines) __ AIC(glm(dist ~ speed, data=train_cars, family=poisson(link="log"))) [1] 438.6314 __ AIC(glm(dist ~ speed, data=train_cars, family=poisson(link="identity"))) [1] 436.3997 __ AIC(glm(dist ~ bs(...
