Description Usage Arguments Value Examples
This function performs a one sample t-test.
1 | my_t.test(x, alternative, mu)
|
x |
The numeric vector of data. |
alternative |
Character string specifying the alternative hypothesis. This should only accept "two.sided", "less", or "greater". |
mu |
A number indicating the null hypothesis value of the mean. |
A list with elements:
test_stat |
The numeric test statistic. |
df |
The degrees of freedom. |
alternative |
The value of the parameter alternative. |
p_val |
The numeric 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.