11 Analyzing a single categorical variable

Tutorial learning objectives

  • Learn how to calculate a standard error for a proportion
  • Learn how to calculate a confidence interval for a proportion
  • Learn about the binomial distribution and the dbinom function
  • Learn how to test hypotheses about a proportion using the binomial test
  • Learn an example of the confidence interval approach to hypothesis testing
  • Learn how to conduct a \(\chi\)2 goodness of fit test using a proportional model