# NOT RUN {
# for reproducibility
set.seed(123)
library(statsExpressions)
options(tibble.width = Inf, pillar.bold = TRUE, pillar.neg = TRUE)
# ----------------------- parametric ---------------------------------------
one_sample_test(
data = ggplot2::msleep,
x = brainwt,
test.value = 0.275,
type = "parametric"
)
# ----------------------- non-parametric -----------------------------------
one_sample_test(
data = ggplot2::msleep,
x = brainwt,
test.value = 0.275,
type = "nonparametric"
)
# ----------------------- robust --------------------------------------------
one_sample_test(
data = ggplot2::msleep,
x = brainwt,
test.value = 0.275,
type = "robust"
)
# ---------------------------- Bayesian -----------------------------------
one_sample_test(
data = ggplot2::msleep,
x = brainwt,
test.value = 0.275,
type = "bayes",
bf.prior = 0.8
)
# }
Run the code above in your browser using DataLab