
# NOT RUN {
# for reproducibility
set.seed(123)
library(statsExpressions)
# between-subjects design -----------------------------------------------
# with defaults
expr_t_robust(
data = sleep,
x = group,
y = extra
)
# within-subjects design -----------------------------------------------
expr_t_robust(
data = dplyr::filter(bugs_long, condition %in% c("LDLF", "LDHF")),
x = condition,
y = desire,
paired = TRUE,
subject.id = subject
)
# }
Run the code above in your browser using DataLab