Description Usage Arguments Value Examples
This function performs a one sample t-test in R.
1 | my_t_test(x, alternative, mu)
|
x |
a non-empty numeric vector of data values. |
alternative |
a character string specifying the alternative hypothesis, must be one of "two.sided", "greater" or "less". |
mu |
a number indicating the true value of the mean (or difference in means if you are performing a two sample test). |
the t test results of x:
a list includes,
test_stat
, the value of the test statistic;
df
, the degrees of freedom;
alternative
a character string describing the alternative hypothesis;
p_val
, the p-value for the test.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.