Contingency Table Analysis: Methods and Implementation Using R: From Theory to Applications