Getting to Know R
Getting ready for the course
> 1+2
[1] 3
> 1+2*3+4*5
[1] 27> group1<-c(4.5,4.7,4.2,4.8,3.9)
> group2<-c(6.0,5.9,5.8,5.5,6.2)
> t.test(group1,group2)
Welch Two Sample t-test
data: group1 and group2
t = -7.2281, df = 7.1573, p-value = 0.0001556
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-1.9355112 -0.9844888
sample estimates:
mean of x mean of y
4.42 5.88 Last updated
Was this helpful?
