library("psych350lab")
writeup <- apa_2x2_wg_factorial_writeup(
results,
dv_name = "performance",
factor_a_name = "task presentation",
factor_b_name = "task difficulty",
factor_a_labels = c("computer", "paper"),
factor_b_labels = c("easy", "hard"),
hypothesis = list(
interaction_rh = paste0("students will perform better on ",
"hard tasks on computer but better on easy tasks on paper"),
simple_effects = list(
list(at_a_level = "computer", direction = "b2_higher"), # hard > easy on computer
list(at_a_level = "paper", direction = "b1_higher") # easy > hard on paper
)
)
)APA Write-Up for 2x2 Within-Groups Factorial ANOVA
Description
Generates an APA-style paragraph for a two-way within-groups (repeated measures) ANOVA where both factors are measured within subjects.
Usage
apa_2x2_wg_factorial_writeup(
wg_factorial_results_list,
dv_name,
factor_a_name,
factor_b_name,
factor_a_labels,
factor_b_labels,
hypothesis = NULL,
alpha = 0.05,
posthoc_test = "LSD"
)
Arguments
wg_factorial_results_list
|
Output from within-groups factorial ANOVA containing:
|
dv_name
|
Character. Descriptive name for DV (e.g., "performance"). |
factor_a_name
|
Character. Name of factor A (e.g., "task type"). |
factor_b_name
|
Character. Name of factor B (e.g., "difficulty"). |
factor_a_labels
|
Character vector of length 2. Labels for factor A. |
factor_b_labels
|
Character vector of length 2. Labels for factor B. |
hypothesis
|
List with hypothesis details:
|
alpha
|
Significance level. Default 0.05. |
posthoc_test
|
Character. Name of follow-up test. Default "LSD". |
Value
A character string with APA write-up.