O'Reilly logo

Statistical Hypothesis Testing with SAS and R by Dirk Taeger, Sonja Kuhnt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required