Exact Functional Test:
Exact Functional Test on Two Discrete Random Variables
Description
Perform the exact functional test on a contingency table to determine if the column variable is a function of the row variable. The null population includes tables with fixed row and column sums as in the observed table. The null distribution follows an exact multivariate hypergeometric distribution.
Usage
EFTDP(nm)
EFTDQP(nm)
Value
The exact p-value of the test.
Arguments
nm
a matrix of nonnegative integers representing a contingency table.
Author
Hien Nguyen, Hua Zhong, Yiyi Li, and Joe Song
Details
The exact functional test is performed using branch-and-bound with two algorithms (DP and DQP) to avoid re-calculation of bounds nguyen2018modelfree,Nguyen2020EFTFunChisq.