ard_mcnemartest {cardx}R Documentation

ARD McNemar's Test

Description

Analysis results data for McNemar's statistical test.

Usage

ard_mcnemartest(data, by, variable, ...)

Arguments

data

(data.frame)
a data frame. See below for details.

by

(tidy-select)
column name to compare by.

variable

(tidy-select)
column name to be compared.

...

arguments passed to stats::mcnemar.test(...)

Details

For the ard_mcnemartest() function, the data is expected to be one row per subject. The data is passed as stats::mcnemar.test(x = data[[variable]], y = data[[by]], ...). Please use table(x = data[[variable]], y = data[[by]]) to check the contingency table.

Value

ARD data frame

Examples

cards::ADSL |>
  ard_mcnemartest(by = "SEX", variable = "EFFFL")


[Package cardx version 0.1.0 Index]