APA ANOVA Source Table

Description

Creates an APA-formatted ANOVA source table showing Source, df, MS, F, and p for a between-groups ANOVA. This provides the full ANOVA source table rather than just descriptive statistics.

Usage

create_anova_source_table(
  anova_results_list = NULL,
  iv_name = "Independent Variable",
  dv_name = "Dependent Variable",
  KEY = TRUE,
  table_title = NULL
)

Arguments

anova_results_list Output from bg_anova_answers().
iv_name Character. Display name for the independent variable.
dv_name Character. Display name for the dependent variable.
KEY Logical. If TRUE (default), fill with computed values. If FALSE, create a blank template.
table_title Character or NULL. Optional table caption.

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_anova_source_table(result,
  iv_name = "Height Group", dv_name = "Critics Score")
ft

Source

df

MS

F

p

Between Groups (Height Group)

1

1.50

.267

Within Groups (Error)

6

103.47

Total

7