Hypothesis Testing on Attributes – Chi-Square Test and its applications to research problems using R