Description Usage Arguments Value Examples
Performs one and two sample t-tests on vectors of data.
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". Otherwise, your function should throw an informative error. |
mu |
a number indicating the null hypothesis value of the mean. |
test_stat: the numeric test statistic.
df: the degrees of freedom.
alternative: the value of the alternative.
p_val: the numeric p-value.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.