Description Usage Arguments Value Examples
This function performs a one sample t-test in R.
1 | my_t.test(x, mu, alternative)
|
x |
Numeric vector of data. |
mu |
Numeric input for a number indicating the null hypothesis value of the mean. |
alternative |
A character string, either "two.sided", "less", or "greater", that specifies the alternative hypothesis. |
a list
with elements:
test_stat
: the numeric test statistic;
df
: the degrees of freedom;
alternative
: the value of the 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.