calc_ttest_1: Internal function - one-sample t-test used in public function...

View source: R/calc_ttest.R

calc_ttest_1R Documentation

Internal function - one-sample t-test used in public function calc_ttest()

Description

Internal function - one-sample t-test used in public function calc_ttest()

Usage

calc_ttest_1(
  data,
  var,
  mu = 0,
  conf_level = 0.95,
  show_cohens_d = FALSE,
  show_alternative = FALSE
)

Arguments

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.


emilelatour/lamisc documentation built on April 9, 2024, 10:33 a.m.