Nothing
test_that("nice_t_test", {
skip_if_not_installed("effectsize")
skip_if_not_installed("methods")
expect_snapshot(nice_t_test(
data = mtcars,
response = "mpg",
group = "am",
verbose = FALSE
))
# Multiple dependent variables at once
expect_snapshot(nice_t_test(
data = mtcars,
response = names(mtcars)[1:7],
group = "am",
verbose = FALSE
))
# Can be passed some of the regular arguments
# of base [t.test()]
# Student t-test (instead of Welch)
expect_snapshot(nice_t_test(
data = mtcars,
response = "mpg",
group = "am",
var.equal = TRUE,
verbose = FALSE
))
# One-sided instead of two-sided
expect_snapshot(nice_t_test(
data = mtcars,
response = "mpg",
group = "am",
alternative = "less",
verbose = FALSE
))
# One-sample t-test
expect_snapshot(nice_t_test(
data = mtcars,
response = "mpg",
mu = 10,
verbose = FALSE
))
# Paired t-test instead of independent samples
expect_snapshot(nice_t_test(
data = ToothGrowth,
response = "len",
group = "supp",
paired = TRUE,
verbose = FALSE
))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.