APA Write-Up for 2x2 Mixed Factorial ANOVA

Description

Generates an APA-style paragraph for a mixed design ANOVA with one between-groups factor and one within-groups factor.

Usage

apa_2x2_mixed_factorial_writeup(
  mixed_results_list,
  dv_name,
  between_name,
  within_name,
  between_labels,
  within_labels,
  hypothesis = NULL,
  alpha = 0.05
)

Arguments

mixed_results_list

Output from mixed factorial ANOVA containing:

Interaction
List with F, p_value, df_effect, df_error, mse
MainEffect_Between
List for between-groups factor
MainEffect_Within
List for within-groups factor
CellDescriptives
Data frame with between_factor, within_factor, mean, sd
MarginalMeans_Between
Data frame with level, mean, se
MarginalMeans_Within
Data frame with level, mean, sd
dv_name Character. Descriptive name for DV.
between_name Character. Name of between-groups factor (e.g., "gender").
within_name Character. Name of within-groups factor (e.g., "time").
between_labels Character vector of length 2. Labels for between factor.
within_labels Character vector of length 2. Labels for within factor.
hypothesis

List with hypothesis details:

interaction_rh
Full RH statement for interaction.
interaction_pattern
Description of expected pattern.
main_between_direction
Expected: "level1_higher" or "level2_higher"
main_between_rh
RH text for between main effect.
main_within_direction
Expected direction for within factor.
alpha Significance level. Default 0.05.

Value

A character string with APA write-up.