library("psych350lab")
result <- wg_anova_answers(data, "rt_critics_score", "rt_audience_score")
writeup <- apa_wg_anova_writeup(
result,
condition_labels = c("critics", "audience members"),
dv_name = "liking the movie",
hypothesis = list(
direction = "condition2_higher",
rh_text = paste0("a higher percentage of audience members ",
"will give the media a favorable review than critics")
),
subject = "raters"
)
cat(writeup)APA Write-Up for Within-Groups ANOVA (Two Conditions)
Description
Generates an APA-style paragraph reporting a within-groups ANOVA result, with hypothesis-driven conclusions.
Usage
apa_wg_anova_writeup(
anova_results_list,
condition_labels,
dv_name,
hypothesis = NULL,
alpha = 0.05,
subject = NULL,
include_effect_size = FALSE,
effect_size_type = "partial_eta_sq"
)
Arguments
anova_results_list
|
Output from wg_anova_answers(). |
condition_labels
|
Character vector of length 2. Labels for the two conditions (e.g., c("critics score", "audience score")). |
dv_name
|
Character. Descriptive name for the DV construct (e.g., "favorable ratings"). |
hypothesis
|
List with hypothesis details:
|
alpha
|
Significance level. Default 0.05. |
subject
|
Character or NULL. Subject description (e.g., "participants", "media"). |
include_effect_size
|
Logical. Include effect size in output. Default FALSE. |
effect_size_type
|
Character. Type: "partial_eta_sq" or "eta_sq". Default "partial_eta_sq". |
Value
A character string with the APA write-up.