Description Usage Arguments Value Examples
This function performs a one sample t-test in R.
1 | my_t.test(x, alternative, mu)
|
x |
Numeric vector of data. |
alternative |
Character string specifying the alternative hypothesis. This should only accept "two.sided", "less", or "greater". Otherwise, your function should throw an informative error. |
mu |
Number indicating the null hypothesis value of the mean. |
List with elements: the numeric test statistic test_stat
,
the degrees of freedom df
,
the value of the parameter alternative
,
the numeric p-value p_val
.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.