Introduction to log-linear models