Description Usage Arguments Value Note Examples
This funtion is a T Test Calculator. Original script found at: https://stats.stackexchange.com/questions/30394/how-to-perform-two-sample-t-tests-in-r-by-inputting-sample-statistics-rather-tha
1 | ttest_calc(mean1, std1, n1, mean2, std2, n2, m0 = 0, equal.variance = FALSE)
|
mean1 |
mean for sample 1 |
std1 |
std for sample 1 |
n1 |
size of sample 1 |
mean2 |
mean for sample 2 |
std2 |
std for sample 2 |
n2 |
size of sample 2 |
m0 |
the null value for the difference in means to be tested for. Default is 0. |
equal.variance |
whether or not to assume equal variance. Default is FALSE. |
df |
enter desired dataframe |
vars |
variables for |
T=test outputs: 'Difference of means', 'Std Error', 't value', and 'p-value'.
Non equal variance is default. To change to equal variance assume, enter equal.varance = TRUE.
1 | ttest_calc(21,2,100, 25, 5, 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.