ard_stats_prop_test: ARD 2-sample proportion test

View source: R/ard_stats_prop_test.R

ard_stats_prop_testR Documentation

ARD 2-sample proportion test

Description

Analysis results data for a 2-sample test or proportions using stats::prop.test().

Usage

ard_stats_prop_test(data, by, variables, conf.level = 0.95, ...)

Arguments

data

(data.frame)
a data frame.

by

(tidy-select)
column name to compare by

variables

(tidy-select)
column names to be compared. Must be a binary column coded as TRUE/FALSE or 1/0. Independent tests will be computed for each variable.

conf.level

(scalar numeric)
confidence level for confidence interval. Default is 0.95.

...

arguments passed to prop.test(...)

Value

ARD data frame

Examples


mtcars |>
  ard_stats_prop_test(by = vs, variables = am)


cardx documentation built on Sept. 11, 2024, 9:12 p.m.