APA Descriptive Statistics Table for Within-Groups Factorial ANOVA (Flextable)

Description

Creates an APA-formatted descriptive statistics table for a within-groups factorial design showing cell means, SDs, and ns organized by IV1 (rows) and IV2 (columns). Supports arbitrary k × j designs.

Usage

create_apa_factwg_desc_table(
  anova_results_list,
  iv1_name = "IV1",
  iv2_name = "IV2",
  dv_name = "DV",
  Key = TRUE,
  table_title = NULL
)

Arguments

anova_results_list Output from anova_factwg_answers().
iv1_name Character. Display name for IV1.
iv2_name Character. Display name for IV2.
dv_name Character. Display name for DV (used in caption).
Key Logical. If TRUE, fill with values; if FALSE, blank.
table_title Character or NULL. Optional table caption.

Value

A flextable::flextable() object.