dot-format_cohens_d_results: Convert Cohen's D Test to ARD

.format_cohens_d_resultsR Documentation

Convert Cohen's D Test to ARD

Description

Convert Cohen's D Test to ARD

Usage

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

Value

ARD data frame

Examples


cardx:::.format_cohens_d_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.