Description Usage Arguments Value Examples
This function performs a one sample t-test.
1 | my_t.test(x, alternative = "two.sided", mu = 0)
|
x |
Numeric vector of data comprising sample values. |
alternative |
String specifying the alternative hypothesis, can be one of three values: less, two.sided, or greater. |
mu |
The numeric mean of the null hypothesis. |
A list comprised of the following: test_stat
(the numeric
test statistic), df
(the degrees of freedom), alternative
(a string representing the alternative hypothesis), and p_val
(the
numeric p-value).
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.