hint.dist.test: hint.dist.test

Description Usage Arguments Details Value

View source: R/hint_main.R

Description

Tests whether the absolute distance between two intersection sizes would be expected by chance, i.e. whether they fall into opposite tails of their respective Hypergeometric Intersection distributions.

Usage

1
hint.dist.test(d, n1, A1, n2, A2, q1 = 0, q2 = 0, alternative = "greater")

Arguments

d

A positive integer specifying the observed distance to be tested.

n1

An integer specifying the number of categories in the urns for the first distribution.

A1

An integer vector specifying the number of balls drawn from urns for the first distribution.

n2

An integer specifying the number of categories in the urns for the second distribution.

A2

An integer vector specifying the number of balls drawn from the urns for the second distribution.

q1

An integer specifying the number of categories with duplicates in the second urn of the first distribution. If 0 then the symmetric, singleton case is computed, otherwise the asymmetric, duplicates case is computed (see Hyperintersection).

q2

An integer specifying the number of categories with duplicates in the second urn of the second distribution. If 0 then the symmetric, singleton case is computed, otherwise the asymmetric, duplicates case is computed (see Hyperintersection).

alternative

A characer string specifying the hypothesis to be tested. Can be one of "greater", "less", or "two.sided".

Details

The distribution of absolute distances between two hypergeometric intersection sizes is given by

P(X=d) = sum_{v1,v2} P(v1)*P(v2)

where D_d is the set of pairs of intersection sizes, (v_1,v_2), with absolute differences of size d.

Value

An object of class hint.dist.test, which is a list containing the following components:


hint documentation built on Feb. 2, 2022, 5:10 p.m.