Loading…

Token swap test revisited

The token swap test measures the association between row and column variables of a 2×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 sta...

Full description

Saved in:
Bibliographic Details
Published in:Computer methods and programs in biomedicine 2003-03, Vol.70 (3), p.265-269
Main Author: Heckerling, Paul S
Format: Article
Language:English
Subjects:
Citations: Items that this one cites
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:The token swap test measures the association between row and column variables of a 2×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.
ISSN:0169-2607
1872-7565
DOI:10.1016/S0169-2607(02)00026-3