# NOT RUN {
#---------------- two-sample test ------------------------------------
# creating a smaller dataset
msleep_short <- dplyr::filter(
.data = ggplot2::msleep,
vore %in% c("carni", "herbi")
)
# with defaults
ggstatsplot::effsize_t_parametric(
formula = sleep_rem ~ vore,
data = msleep_short,
)
# changing defaults
ggstatsplot::effsize_t_parametric(
formula = sleep_rem ~ vore,
data = msleep_short,
mu = 1, # ignored in this case
paired = FALSE,
hedges.correction = TRUE,
conf.level = .99,
noncentral = FALSE
)
#---------------- one-sample test ------------------------------------
ggstatsplot::effsize_t_parametric(
formula = ~sleep_rem,
data = msleep_short,
mu = 2,
hedges.correction = TRUE,
conf.level = .90,
noncentral = TRUE
)
# }
Run the code above in your browser using DataLab