Description Usage Arguments Value Examples
This function performs 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. |
mu |
a number indicating the null hypothesis value of the mean. |
list containing the test statistic, degrees of freedom, value of the parameter alternative, and the p-value
1 2 | x <- 1:10
my_t.test(x, "less", 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.