Chapter 4

Tests on proportions

In this chapter we present tests for the parameter of a binomial distribution. We first treat a test on the population proportion in the one-sample case. We further cover tests for the difference of two proportions using the pooled as well as the unpooled variances. The last test in this chapter deals with the equality of proportions for the multi-sample case. Not all tests are covered by a SAS procedure or R function. We give the appropriate sample code to perform all discussed tests.

4.1 One-sample tests

In this section we deal with the question, if a population proportion differs from a predefined value between 0 and 1.

4.1.1 Binomial test

Description: Tests if a population proportion c04-math-0001 differs from a value c04-math-0002.
Assumptions:
  • Data are randomly sampled from a large population with two possible outcomes.
  • Let c04-math-0003 be denoted as “success” and c04-math-0004 as “failure”.
  • The parameter c04-math-0005 of interest is given by the proportion of successes in the population.
  • The number of successes ...

Get Statistical Hypothesis Testing with SAS and R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.