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
listwith the values to be compared. Each list should have a name otherwise names will be autogenerated.- y
 The
listwith 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
 logicalindicating if the data is the result of a paired sample; default:FALSE- conf.level
 The confidence level; default:
0.99- na.rm
 logicalindicating ifNAvalues are removed; default:TRUE- CER
 numericalvalue 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
Author
Emilio Xavier Esposito emilio@exeResearch.com (https://github.com/emilioxavier)