Description Usage Arguments Value Examples
This function performs a one sample t-test in R.
1 | my_t.test(x, alternative, mu)
|
x |
Numeric vector of data. |
alternative |
Character string specifying the alternative hypothesis. This should only accept ' "two.sided"', '"less"', or '"greater". |
mu |
Number indicating the null hypothesis value of the mean. |
A list containing the numeric test statistic, degrees of freedom, value of the alternative
parameter, and the numeric p-value.
1 | my_t.test(1:10, "two-sided", 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.