Text this: Application of generalized linear models to data analysis in drinking water treatment