R - independent t-test

> Procedural Languages > R

Table of Contents

1 - About

2 - Package

2.1 - Stats

  • Compare the gain scores in the two groups (for instance: control and training groups)
t.test(data$gain ~ data$groups, var.equal = T)
   Two Sample t-test

data:  data$gain by data$groups
t = -4.0404, df = 118, p-value = 9.539e-05
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 -2.2538109 -0.7711891
sample estimates:
mean in group 0 mean in group 1 
         1.9750          3.4875
Advertising
lang/r/independent_t-test.txt · Last modified: 2017/02/12 21:02 by gerardnico