Skip to contents

Barnards Unconditional Exact Test with trial data

Usage

barnard_test_(two_by_two, verbose = FALSE, safe_mode = TRUE)

Arguments

two_by_two

A two-by-two table where the first column contains counts of events.

verbose

Set to TRUE if you want the normal output from running barnard.test to print to the console. Default is FALSE

safe_mode

If invalid input is provided, should the function stop with error (default), or return an NA (safe_mode = FALSE)

Value

2-sided p-value for the Barnards Unconditional Exact test