Skip to contents

Calculate all t-test Combinations

Usage

combinations.t.test(
  data,
  alternative = "two.sided",
  paired = FALSE,
  conf.level = 0.99,
  na.rm = TRUE
)

Arguments

data

The list with the values to be compared. Each list should have a name otherwise names will be autogenerated.

alternative

The type of t-test analysis; default: "two.sided"

paired

logical indicating if the data is the result of a paired sample; default: FALSE

conf.level

The confidence level; default: 0.99

na.rm

logical indicating if NA values are removed; default: TRUE

Value

A data.frame or tibble with the t-value, degrees of freedom (df), and p-value.

Details

Calculate all t-test combinations within a list of values.

Examples

if (FALSE) { # \dontrun{
  values.ls <- list(a=1:3, b=1:5, c=1:10, d=1:20, e=letters[1:20])
  values.tb <- tibble::tibble(a=1:10, b=11:20, c=21:30, d=31:40, e=letters[1:10])
  combinations.t.test(values.ls)
  combinations.t.test(values.tb)
} # }