c212.fisher.test {c212}R Documentation

Fisher Exact Test

Description

Perform a Fisher exact test on clinical trial data.

Usage

	c212.fisher.test(trial.data, alternative = "two.sided")

Arguments

trial.data

A file or data frame containing the trial data. The data frame must contain the columns B (body-system), AE (adverse event), Group (1 - control, 2 treatment), Count (total number of events), Total (total number of participants).

alternative

Alternative hypothesis may be "two.sided", "greater" or "less". The default is "two.sided".

Details

Perform a Fisher exact test on clinical trial data.

Value

Dataframe containing the results of the test. A copy of the input dataframe with an additional column p containing the p-value from the test.

Note

Wrapper for the R function 'fisher.test' in package 'stats'.

Author(s)

R. Carragher

Examples

data(c212.trial.data)
f = c212.fisher.test(c212.trial.data)

## Not run: 
data(c212.trial.data)
f = c212.fisher.test(c212.trial.data)
head(f)
          B j       AE            p
1 Bdy-sys_1 1 Adv-Ev_1 2.892876e-01
2 Bdy-sys_2 1 Adv-Ev_2 5.333164e-03
3 Bdy-sys_2 2 Adv-Ev_3 1.601311e-02
4 Bdy-sys_2 3 Adv-Ev_4 6.502108e-01
5 Bdy-sys_2 4 Adv-Ev_5 7.437946e-01
6 Bdy-sys_3 1 Adv-Ev_6 3.746249e-08


## End(Not run)

[Package c212 version 0.98 Index]