test_n_1_prop {uxr}R Documentation

N-1 Two Proportions Test

Description

N-1 Two Proportions Test

Usage

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

Arguments

data

data

x

x

y

y

conf_level

Confidence Level (default = 0.95)

Value

results

Examples

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)

[Package uxr version 0.2.0 Index]