Description Usage Arguments Details Value
View source: R/counting.test.R
This test is based on Tukey's "A Quick, Compact, TwoSample Test to Duckworth's Specifications", Technometrics, Vol. 1, No. 1 (1959), p.3148. The test is chosen here because of its easy interpretability.
1  counting.test(B, W)

B, W 
Numeric vectors with best observations ( 
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 pvalue 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.
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 ). 
bad_band_upper_bound  Upper bound for bad observations (W ).

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.