# NOT RUN {
# for reproducibility
set.seed(123)
library(statsExpressions)
# -------------------- between-subjects ------------------------------
# to get expression
expr_anova_parametric(
data = ggplot2::msleep,
x = vore,
y = sleep_rem
)
# -------------------- repeated measures ------------------------------
# to get dataframe
expr_anova_parametric(
data = iris_long,
x = condition,
y = value,
subject.id = id,
paired = TRUE,
output = "dataframe"
)
# }
Run the code above in your browser using DataLab