10. Categorical Association: Practical 10
Chi-square Goodness of Fit Test
In the next exercises we are going to work with the variable 'environment'. This variable describes whether people find it important to save water on a 5-point scale. In response to the statement 'Saving water is good for the environment', respondents answered with score of 1 = Strongly disagree, to 5 = Strongly agree. Our expectation is that people are indifferent and that the responses are equally divided over these 5 categories.
Make a barplot of the variable "environment".
Which category contains the most observations?
Category occurs most often.
Unlock full access