# NOT RUN {
# for reproducibility
set.seed(123)
library(statsExpressions)
# -------------------- between-subjects ------------------------------
# with defaults
statsExpressions::expr_anova_parametric(
data = ggplot2::msleep,
x = vore,
y = sleep_rem,
paired = FALSE,
k = 3
)
# modifying the defaults
statsExpressions::expr_anova_parametric(
data = ggplot2::msleep,
x = vore,
y = sleep_rem,
paired = FALSE,
effsize.type = "biased",
partial = FALSE,
var.equal = TRUE,
nboot = 10
)
# -------------------- repeated measures ------------------------------
statsExpressions::expr_anova_parametric(
data = iris_long,
x = condition,
y = value,
paired = TRUE,
k = 4,
nboot = 10
)
# }
Run the code above in your browser using DataLab