Description Usage Arguments Value Examples
This function performs a sample t-test based on the given input.
1 | my_t.test(x, alternative, mu)
|
x |
A numeric set of data. |
alternative |
A character string specifying the t-test type for |
mu |
A number indicating the null hypothesis value of the mean. |
A list containing the test statistic, degree of freedom, a string represent the type of t-test, and the p-value of the t-test.
1 2 3 | my_t.test(my_gapminder[[4]], "less", 1)
my_t.test(my_gapminder[[4]], "greater", 1)
my_t.test(my_gapminder[[4]], "two.sided", 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.