# NOT RUN {
# for reproducibility
set.seed(123)
# }
# NOT RUN {
# creating a smaller dataset
msleep_short <- dplyr::filter(
.data = ggplot2::msleep,
vore %in% c("carni", "herbi")
)
# with defaults
statsExpressions::expr_t_parametric(
data = msleep_short,
x = vore,
y = sleep_rem
)
# changing defaults
statsExpressions::expr_t_parametric(
data = msleep_short,
x = vore,
y = sleep_rem,
var.equal = TRUE,
k = 2,
effsize.type = "d"
)
# }
Run the code above in your browser using DataLab