transform.contingency.table function.