Learn R Programming

uxr (version 0.2.0)

test_n_1_prop: N-1 Two Proportions Test

Description

N-1 Two Proportions Test

Usage

test_n_1_prop(data, x, y, conf_level = 0.95)

Value

results

Arguments

data

data

x

x

y

y

conf_level

Confidence Level (default = 0.95)

Examples

Run this code
design = c("A","B")
complete = c(37, 22)
incomplete = c(418, 416)
data <- data.frame(design, complete, incomplete)
data <- data |> tidyr::pivot_longer(!design, names_to = "rate", values_to = "n") |>
  tidyr::uncount(n)
test_n_1_prop(data, design, rate, conf_level = 0.95)

Run the code above in your browser using DataLab