Description Usage Arguments Value Examples
This function run a one sample t-test.
1 | my_t_test(x, alternative, mu)
|
x |
A numeric vector of data. value. |
alternative |
a character string specifying the alternative hypothesis.
This should only accept |
mu |
A numeric indicating the null hypothesis value of the mean. |
A list of numeric including the t-value, the degrees of freedom, the alternative, and the p-value.
1 2 3 | my_t_test(my_gapminder$lifeExp, "two.sided", 60)
my_t_test(my_gapminder$lifeExp, "less", 60)
my_t_test(my_gapminder$lifeExp, "greater", 60)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.