library("psych350lab")
data(superman, package = "psych350data")
sm <- superman
sm$era <- ifelse(sm$year >= 2000, 2, 1)
result <- anova_factorial_answers(sm, dv = "clark_height_in",
iv1 = "clark_grp", iv2 = "era",
iv1_labels = c("Under 6ft", "6ft+"),
iv2_labels = c("Pre-2000", "Post-2000"))
cat(format_factbg_interaction_results(result))Factorial Interaction Results Text
Description
Returns formatted text for the interaction test and LSD components, either filled (answer key with red highlighting) or blank (worksheet).
Usage
format_factbg_interaction_results(
anova_results_list,
KEY = TRUE,
highlight = TRUE
)
factbg_interaction_results(anova_results_list, KEY = TRUE, highlight = TRUE)
Arguments
anova_results_list
|
Output from anova_factorial_answers().
|
KEY
|
Logical. If TRUE, show filled answers. If FALSE, show blanks.
|
highlight
|
Logical. If TRUE and KEY = TRUE, wrap answers in highlight markup for Quarto/RMarkdown.
|
Value
A character string with markdown/HTML formatting.