Learn R Programming

uxr (version 0.2.0)

test_fisher: Fisher's Test

Description

Fisher's Test

Usage

test_fisher(data, x, y)

Value

results

Arguments

data

data

x

x

y

y

Examples

Run this code
design = c("A","B")
complete = c(11, 5)
incomplete = c(1, 5)
data <- data.frame(design, complete, incomplete)
data <- data |> tidyr::pivot_longer(!design, names_to = "rate", values_to = "n") |>
  tidyr::uncount(n)
test_fisher(data, design, rate)

Run the code above in your browser using DataLab