Token swap test revisited
Related Experiment Videos
1Department of Medicine (M/C 787), University of Illinois, 840 South Wood Street, Chicago, IL 60612, USA. pshecker@uic.edu
Abstract:
The token swap test measures the association between row and column variables of a 2 x 2 table in sample misclassification space, and makes no assumptions about repeated, random sampling from a source population. Despite its conceptual usefulness, the token swap test is not implemented by standard statistical software packages. Here the author describes 'tokenSwaps', a Mathematica program that performs a token swap test. The 'tokenSwaps' program also performs a one-tailed Fisher exact test, allowing results of the two methods to be compared. The program uses recursive functional programming and local rewrite rules to achieve substantial coding economy. Examples of the operation of the program are given, and its limitations are discussed.
Related Concept Videos
Types of Chemical Reactions: Exchange and Reversible
A special kind of exchange reaction is the oxidation-reduction reaction, or the redox reaction. These reactions involve the transfer of electrons from one compound to another. The electrons in these reactions commonly come from hydrogen atoms, which consist of an electron and a proton. A molecule gives up a...
Test Cross
Sign Test for Matched Pairs
To conduct the sign test, we first calculate the differences in value between...
Comparing Experimental Results: Student's t-Test
Comparison Tests
Test for Homogeneity