Patterns in static

Apophenia

apop_fexact.c File Reference

Defines

Enumerations

Functions


Detailed Description

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.


Function Documentation

apop_data* apop_test_fisher_exact ( apop_data intab  ) 

Run the Fisher exact test on an input contingency table.

Returns:
An apop_data set with two rows:
"probability of table": Probability of the observed table for fixed marginal totals.
"p value": Table p-value. The probability of a more extreme table, where `extreme' is in a probabilistic sense.

SourceForge.net Logo

Autogenerated by doxygen on 23 Nov 2009.