Description Usage Arguments Value Examples
This function performs a one sample t-test.
1 | my_t.test(x, alternative = "two.sided", mu)
|
x |
A vector with numeric entries that provides the data values for the test. |
alternative |
A string that specifies the type of the alternative hypothesis for the test.
This must be |
mu |
A numeric input that specifies the true mean according the the null hypothesis. |
A list containing the following items.
The numeric, test_stat
, which is the calculated t-test statistic.
The numeric, df
, which is the degrees of freedom of the test.
The string, alternative
, which is the alternative hypothesis that was specified.
The numeric, p_val
, which is the p-value calculated by the tests.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.