Description Usage Arguments Value Examples
This function performs a one-sample t-test.
1 | my_t_test(x, alternative, mu)
|
x |
numeric vector input of data. |
alternative |
a string that determinates the null hypothesis. |
mu |
numeric input of the null hypothesis mean. |
A list with the alternative hypothesis, numeric test value, and numeric p-value.
1 2 | my_t_test(x = rnorm(10, 0, 1), alternative = "two.sided", mu = 0)
my_t_test(my_gapminder$pop, alternative = "less", mu = 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.