Combined Between-Groups ANOVA Results and Descriptives Table

Description

Creates a single flextable that combines the ANOVA test results (F, df, p, MSE) with the descriptive statistics for each group. Useful for compact reporting or worksheets.

Usage

create_bg_anova_combined_table(
  anova_results_list,
  rh_name = "RH1",
  iv_name = "Independent Variable",
  dv_name = "Dependent Variable",
  iv_labels = NULL,
  KEY = TRUE
)

Arguments

anova_results_list Output from bg_anova_answers().
rh_name Character. Research hypothesis name/label.
iv_name Character. Display name for the IV.
dv_name Character. Display name for the DV.
iv_labels Character vector or NULL. Labels for IV levels.
KEY Logical. If TRUE, fill with values; if FALSE, blank.

Value

A flextable::flextable() object.

Examples

library("psych350lab")

data(superman, package = "psych350data")
result <- bg_anova_answers(superman, iv = "clark_grp", dv = "rt_critics_score")
ft <- create_bg_anova_combined_table(result,
  rh_name = "RH1",
  iv_name = "Height Group", dv_name = "Critics Score",
  iv_labels = c("Under 6ft", "6ft+"))
ft

F / Mean

p / SD

df / N

MSE

Decision

ANOVA: RH1

1.50

.267

1, 6

103.47

Retain H0

Under 6ft

76.83

11.13

6

6ft+

87.00

1.41

2