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.
Numeric vectors with best observations (
rbind(B,W) and order it. If
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
bad_band_upper_bound: We look if observations from group
are at the top or bottom. The highest/ lowest values for observations of group
within that cluser are
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.
A data frame with the following columns
||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.|
|| Lower bound for good observations (
|| Upper bound for good observations (
|| Lower bound for bad observations (
|| Upper bound for bad observations (
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.