compare_rates_within_groups: Compare Rates Within Groups

View source: R/compare_rates_within_groups.R

compare_rates_within_groupsR Documentation

Compare Rates Within Groups

Description

Compare Rates Within Groups

Usage

compare_rates_within_groups(
  data,
  x,
  y,
  conf_level = 0.95,
  input,
  output = "console"
)

Arguments

data

data

x

var 1

y

var 2

conf_level

Confidence level

input

input type currently only accepts "wide"

output

Default is "console", also accepts "tibble"

Value

results

Examples

A <- c(1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1)
B <- c(0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0)
data <- data.frame(A, B)
compare_rates_within_groups(data, A, B, input = "wide")

uxr documentation built on Dec. 28, 2022, 2:03 a.m.