Description Usage Arguments Value Examples
This function performs a one sample student's t-test on a vector of data.
1 | my_t_test(x, alternative, mu)
|
x |
a numeric vector of data. |
alternative |
a character string specifying the alternative hypothesis. This only accepts "two.sided", "less", or "greater". |
mu |
a number indicating the null hypothesis value of the mean. |
A list with elements: test_stat, the numeric test statistic; df, a numeric containing the degrees of freedom; alternative character containing the value of the parameter alternative; p_val, a numeric p-value.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.