Statistics, Department of

 

The R Journal

Date of this Version

6-2010

Document Type

Article

Citation

The R Journal (June 2010) 2(1)

Comments

Copyright 2010, The R Foundation. Open access material. License: CC BY 3.0 Unported

Abstract

There is an inherent relationship between two-sided hypothesis tests and confidence intervals. A series of two-sided hypothesis tests may be inverted to obtain the matching 100(1-)% confidence interval defined as the smallest interval that contains all point null parameter values that would not be rejected at the α level. Unfortunately, for discrete data there are several different ways of defining two-sided exact tests and the most commonly used two sided exact tests are defined one way, while the most commonly used exact confidence intervals are inversions of tests defined another way. This can lead to inconsistencies where the exact test rejects but the exact confidence interval contains the null parameter value. The packages exactci and exact2x2 provide several exact tests with the matching confidence intervals avoiding these in consistencies as much as possible. Examples are given for binomial and Poisson parameters and both paired and unpaired 2 x 2 tables.

Share

COinS