Description Usage Arguments Value Examples
This function can perform a one sample t test in R.
1 | my_t.test(x, alternative, mu)
|
x |
a numeric vector of data. |
alternative |
a 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 the numeric test statistic, the degrees of freedom,
the value of the parameter alternative
, the numeric p-value.
1 2 | lifeExp <- my_gapminder$lifeExp
my_t.test(lifeExp, "two.sided", 60)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.