Description Usage Arguments Value Examples
This function does one sample t-test.
1 | my_t.test(x, alternative, mu)
|
x |
Numeric vector of data to be tested. |
alternative |
A string specifying the alternative hypothesis, only accept "two.sided", "less", or "greater". |
mu |
The null hypothesis of the mean of |
A list of t-test parameters, includes test_stat
,
df
, alternative
, and p_val
.
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.