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