Description Usage Arguments Value Author(s) Examples
Function to print results of a t-test in APA standard (t(df) = t; p = p)
1 2 |
x |
a numeric vector or a factor (grouping variable) |
y |
a numeric vector (dependent variable) |
alternative |
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter. |
mu |
a number indicating the true value of the mean (or difference in means if you are performing a two sample test). Default is 0. |
conf.level |
Confidence level of the interval. Default is 0.95. |
paired |
a logical indicating whether you want a paired t-test. Default is FALSE. |
var.equal |
a logical variable indicating whether to treat the two variances as being equal. If TRUE then the pooled variance is used to estimate the variance otherwise the Welch (or Satterthwaite) approximation to the degrees of freedom is used. Default is FALSE. |
t(df) = t; p = p
Dominik Vogel
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.