A class of statistical models to weaken independence in two-way contingency tables