dot-format_mcnemartest_results: Convert McNemar's test to ARD

.format_mcnemartest_resultsR Documentation

Convert McNemar's test to ARD

Description

Convert McNemar's test to ARD

Usage

.format_mcnemartest_results(by, variable, lst_tidy, ...)

Arguments

by

(string)
by column name

variable

(string)
variable column name

lst_tidy

(named list)
list of tidied results constructed with eval_capture_conditions(), e.g. eval_capture_conditions(t.test(mtcars$mpg ~ mtcars$am) |> broom::tidy()).

...

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

Value

ARD data frame

Examples


cardx:::.format_mcnemartest_results(
  by = "ARM",
  variable = "AGE",
  lst_tidy =
    cards::eval_capture_conditions(
      stats::mcnemar.test(cards::ADSL[["SEX"]], cards::ADSL[["EFFFL"]]) |>
        broom::tidy()
    )
)


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