calc_ttest_1 | R Documentation |
Internal function - one-sample t-test used in public function calc_ttest()
calc_ttest_1(
data,
var,
mu = 0,
conf_level = 0.95,
show_cohens_d = FALSE,
show_alternative = FALSE
)
data |
A data frame or tibble. |
var |
A (non-empty) numeric vector of data values. |
mu |
A number indicating the true value of the mean (or difference in means if you are performing a two sample test). |
conf_level |
Confidence level of the interval. Default level is 0.95. |
show_cohens_d |
Logical whether to return the effect size, Cohen's d. T-test conventional effect sizes, proposed by Cohen, are: 0.2 (small effect), 0.5 (moderate effect) and 0.8 (large effect) (Cohen 1998, Navarro (2015)). This means that if two groups' means don’t differ by 0.2 standard deviations or more, the difference is trivial, even if it is statistically significant. |
show_alternative |
Logical whether to show alternative hypothesis notation in the test results. Default is FALSE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.