Description Usage Arguments Value Examples
This function performs t test on given data
1 | my_t.test(x, alternative, mu)
|
x |
Numeric vector of data |
alternative |
A string specifying types of t test wanted, with choices "two.sided", "less" or "greater". |
mu |
a number indicating the null hypothesis. |
a list including: the numeric test statistic, the degrees of freedom, the type of t test given, and 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.