crossmatchdist {crossmatch}R Documentation

The Exact Null Distribution Of The Cross-match Statistic Under The Null

Description

The exact null distribution of the number of crossmatches for bigN>=4 cases, n>=2 from one type and N-n>=2 from another type.

Usage

crossmatchdist(bigN, n)

Arguments

bigN

The total number of observations

n

The number of cases from one type

Details

bigN is even. Let a1 be the number of cross-matches pairs. Then a2=(n-a1)/2 and a0=bigN/2-(n+a1)/2 are the number of pairs both of one type and the other type respectively.

Value

dist

A matrix with rows a0, a1, a2, Pr(A1=a1) and Pr(A1<=a1).

Author(s)

Ruth Heller

References

Rosenbaum, P.R. (2005), An exact distribution-free test comparing two multivariate distributions based on adjacency, Journal of the Royal Statistical Society: Series B (Statistical Methodology), 67, 4, 515-530.

Examples

crossmatchdist(18,9)

[Package crossmatch version 1.3-1 Index]