![]() |
|
Macros | |
#define | i_real 4 |
#define | i_int 2 |
#define | dwrk (equiv) |
#define | iwrk ((int *)equiv) |
#define | rwrk ((float *)equiv) |
Enumerations | |
enum | Rboolean { FALSE = 0, TRUE } |
Functions | |
int | imax2 (int a, int b) |
int | imin2 (int a, int b) |
float | fmax2 (float a, float b) |
float | fmin2 (float a, float b) |
void | prterr (int icode, const char *mes) |
apop_data * | apop_test_fisher_exact (apop_data *intab) |
Variables | |
threadlocal bool | has_error |
Fisher's exact test for contingency tables
This file primarily consists of an algorithm from the ACM, fully documented below. The C code below was cut and pasted from the R project. Thanks, guys.
Un-R-ifying modifications Copyright (c) 2006–2009 by Ben Klemens. Licensed under the modified GNU GPL v2; see COPYING and COPYING2.
R version credits: fexact.f – translated by f2c (version 19971204).\ Run through a slightly modified version of MM's f2c-clean.\ Heavily hand-edited by KH and MM.
Run the Fisher exact test on an input contingency table.
out->error=='p' | Processing error in the test. |