Description Usage Arguments Value Note Examples
Perform a t test using summary stats rather than source data
1 2 3 |
m1 |
mean of sample 1 |
m2 |
mean of sample 2 |
s1 |
the sample standard deviation of sample 1 |
s2 |
the sample standard deviation of sample 2 |
n1 |
the size of sample 1 |
n2 |
the 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. |
messageLevel |
integer of length 1 indicating the level of diagnostic messages to generate |
list of length 4 with elements "Difference of means", "Std Error", "t", and "p-value"
This is based on code written by CrossValidated user Macro. The original can be found at https://stats.stackexchange.com/a/30450
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.