View source: R/corrected_t_test.R
| corrected_t_test | R Documentation |
Performs one-sample, paired, pooled two-sample, or unequal-variance two-sample t-tests. The corrected Welch-Satterthwaite calculation is the default for the unequal-variance two-sample case.
corrected_t_test(x, y = NULL, alternative = c("two.sided", "less", "greater"),
mu = 0, paired = FALSE, var.equal = FALSE, conf.level = 0.95,
method = c("corrected", "classical"))
x |
Numeric vector of observations. |
y |
Optional numeric vector for a two-sample or paired test. |
alternative |
Alternative hypothesis: |
mu |
Null mean or null difference in means. |
paired |
Logical; perform a paired test when |
var.equal |
Logical; use the pooled-variance test for an independent two-sample test. |
conf.level |
Confidence level for the interval. |
method |
|
An object of class "htest".
corrected_t_test(1:10, y = 2:11)
corrected_t_test(1:10, y = 2:11, method = "classical")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.