Loglinear and Logit Models for Contingency Tables