# NOT RUN {
# for reproducibility
set.seed(123)
# 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 = 1,
tr = 0.2
)
# within-subjects design
statsExpressions::expr_t_robust(
data = dplyr::filter(
statsExpressions::intent_morality,
condition %in% c("accidental", "attempted"),
harm == "Poisoning"
),
x = condition,
y = rating,
paired = TRUE,
nboot = 25
)
# }
Run the code above in your browser using DataLab