Skip to contents

Exact Tests for Small Samples

Usage

exacttests(
  data,
  rows,
  cols,
  counts,
  testType = "fisher",
  alternative = "two.sided",
  ciMethod = "clopper_pearson",
  ciWidth = 95,
  showCI = TRUE,
  correction = FALSE
)

Arguments

data

.

rows

.

cols

.

counts

.

testType

.

alternative

.

ciMethod

.

ciWidth

.

showCI

.

correction

.

Value

A results object containing:

results$instructionsa html
results$contingencya table
results$testsa table
results$notea html

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$contingency$asDF

as.data.frame(results$contingency)