Within-Groups ANOVA (Paired/Repeated Measures) - Two Conditions

Description

Performs a within-groups ANOVA for two repeated measures conditions. Equivalent to a paired-samples t-test but returns F statistic. Uses listwise deletion (matches SPSS/JAMOVI).

Usage

wg_anova_answers(data, dv1, dv2, dv1_label = NULL, dv2_label = NULL)

Arguments

data A data frame or tibble.
dv1 Character string. Name of the first condition variable.
dv2 Character string. Name of the second condition variable.
dv1_label Character or NULL. Display label for dv1.
dv2_label Character or NULL. Display label for dv2.

Value

A list with elements:

ANOVA
A list with F, p_value, df_effect, df_error, mse, and method. Unrounded.
Descriptives
A tibble with condition, condition_label, mean, sd, n, and sem. Unrounded.
Sample_Size
Number of complete cases.

Examples

library("psych350lab")

result <- wg_anova_answers(data, "pretest", "posttest",
                           dv1_label = "Pre-test", dv2_label = "Post-test")
result$ANOVA
result$Descriptives