dot-format_hedges_g_results: Convert Hedge's G Test to ARD

.format_hedges_g_resultsR Documentation

Convert Hedge's G Test to ARD

Description

Convert Hedge's G Test to ARD

Usage

.format_hedges_g_results(by, variable, lst_tidy, paired, ...)

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

paired

If TRUE, the values of x and y are considered as paired. This produces an effect size that is equivalent to the one-sample effect size on x - y. See also repeated_measures_d() for more options.

...

passed to hedges_g(...)

Value

ARD data frame

Examples


cardx:::.format_hedges_g_results(
  by = "ARM",
  variable = "AGE",
  paired = FALSE,
  lst_tidy =
    cards::eval_capture_conditions(
      effectsize::hedges_g(data[[variable]] ~ data[[by]], paired = FALSE) |>
        parameters::standardize_names(style = "broom")
    )
)


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