dot-format_poissontest_results: Convert Poisson test to ARD

.format_poissontest_resultsR Documentation

Convert Poisson test to ARD

Description

Convert Poisson test to ARD

Usage

.format_poissontest_results(by = NULL, variables, lst_tidy, ...)

Arguments

by

(string)
by column name

variables

(character)
names of the event and time variables

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 poisson.test()

Value

ARD data frame

Examples


cardx:::.format_poissontest_results(
  by = "ARM",
  variables = c("CNSR", "AVAL"),
  lst_tidy =
    cards::eval_capture_conditions(
      stats::poisson.test(sum(cards::ADTTE[["CNSR"]]), sum(cards::ADTTE[["AVAL"]])) |>
        broom::tidy()
    )
)


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