Description Usage Arguments Value Examples
This function performs a t-test on a data vector.
1 | my_t_test(x, alternative, mu)
|
x |
Data vector on which t-test is performed. |
alternative |
A String (less, greater, or two.sided), against which the null-hypothesis will be compared. |
mu |
A numeric value representing the null hypothesis for the t-test. |
List containing the numeric test statistic, numeric degrees of freedom, string representing the type of t-test performed, and the numeric p-value.
1 2 | my_t_test(my_gapminder$lifeExp, "greater", 60)
my_t_test(my_gapminder$lifeExp, "two.sided", 60)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.