Skip to contents

Calculate t-test, Cohen's d, and Return Key Values

Usage

values.t.test(
  x,
  y,
  alternative = "two.sided",
  paired = FALSE,
  conf.level = 0.99,
  na.rm = TRUE,
  CER = 0.2
)

Arguments

x

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

y

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

CER

numerical value indicating the control event rate (CER); default: 0.20

Value

t.value The t-test value

df The degrees of freedom

p.value The p-value

Cohens.d The Cohen's d value

Cohens.U3 The Cohen's U3 value

Details

Calculate t-test, Cohen's d, and return the key values.