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