library("psych350lab")
result <- bg_anova_answers(data, "condition", "score")
writeup <- apa_bg_anova_writeup(
result,
iv_name = "training condition",
dv_name = "test performance",
group_labels = c("control", "trained"),
hypothesis = list(
direction = "group2_higher",
rh_text = "trained participants would perform better than control participants"
)
)
cat(writeup)APA Write-Up for Between-Groups ANOVA (Two Groups)
Description
Generates an APA-style paragraph reporting a between-groups ANOVA result, with hypothesis-driven conclusions that compare expected vs. actual results.
Usage
apa_bg_anova_writeup(
anova_results_list,
iv_name,
dv_name,
group_labels = NULL,
hypothesis = NULL,
alpha = 0.05,
include_effect_size = FALSE,
effect_size_type = "partial_eta_sq"
)
Arguments
anova_results_list
|
Output from bg_anova_answers(). |
iv_name
|
Character. Descriptive name for the IV (e.g., "condition"). |
dv_name
|
Character. Descriptive name for the DV (e.g., "recall accuracy"). |
group_labels
|
Character vector of length 2. Labels for IV levels (e.g., c("control", "experimental")). |
hypothesis
|
List with hypothesis details:
|
alpha
|
Significance level. Default 0.05. |
include_effect_size
|
Logical. Include effect size in output. Default FALSE. |
effect_size_type
|
Character. Type: "partial_eta_sq", "eta_sq", or "omega_sq". Default "partial_eta_sq". |
Value
A character string with the APA write-up.