categorize function

Categorize input data by comparing the AIC values of the three fitted models.