igate (version 0.3.3)

counting.test: Performs the counting test

Description

This test is based on Tukey's "A Quick, Compact, Two-Sample Test to Duckworth's Specifications", Technometrics, Vol. 1, No. 1 (1959), p.31-48. The test is chosen here because of its easy interpretability.

Usage

counting.test(B, W)

Arguments

B, W

Numeric vectors with best observations (B) and worst observations (W).

Value

A data frame with the following columns

count The count test statistic described in Tukey's paper, adjusted for tied observations. The original test statistic as described originally in the paper need not exist in case of tied observations, this implemantation remedies this.
good_band_lower_bound Lower bound for good observations (B).
good_band_upper_bound Upper bound for good observations (B).
bad_band_lower_bound Lower bound for bad observations (W).

Details

We form rbind(B,W) and order it. If B and W differ significantly, ordering rbind(B,W) will find observations of one group at the top and observations of the other at the bottom. We then count how many observations of one group are at the top and how many of the other are at the bottom. The sum of the two values gives us the count test statistic. A critical value of count >= 6 correponds to a p-value of roughly 0.05 and is independent of sample size and distributional assumptions. These clustered observations at the top and bottom of the ordered list also determine the control bands good_band_lower_bound, good_band_upper_bound,bad_band_lower_bound, bad_band_upper_bound: We look if observations from group B are at the top or bottom. The highest/ lowest values for observations of group B within that cluser are good_band_lower_bound and good_band_upper_bound. We proceed with group W respectively. If no such clusters form at the end of the ordered list, the control bands are set to -1.