Construction of generalized linear models and regression-based time series models with actuarial applications [3 credits]