Description Usage Arguments Value Examples
This function performs t-test for given value.
1 | my_t.test(x, alternative = "two.sided", mu = 0)
|
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. |
A list consisting following elements:
test_stat
: The numeric test statistics
df
: The degree of freedom
alternative
: The value of parameter 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.