2. Agenda
1. R
2.
3.
4.
5. R
Tuesday, December 6, 11 7
3. Agenda
1. R
2.
3.
4.
5. R
Tuesday, December 6, 11 8
4. •
• Ross Ihaka & Robert Gentleman (R & R)
• Ross Ihaka and Robert Gentleman. R: A language for data analysis and graphics.
Journal of Computational and Graphical Statistics, 5(3):299-314, 1996.
• http://biostat.mc.vanderbilt.edu/twiki/pub/Main/Je reyHorner/JCGSR.pdf
•
Tuesday, December 6, 11 9
10. • Windows: : http://cran.md.tsukuba.ac.jp/bin/windows/base/
• Download R 2.14.0 for Windows
• Mac OS X: http://cran.md.tsukuba.ac.jp/bin/macosx/
• R-2.14.0.pkg (latest version)
Tuesday, December 6, 11 16
90. t
> like <- c(6,10,6,10,7,8,7,9,10,4)
> dislike <- c(3,5,6,4,4,8,4,5,4,7)
> t.test(like,dislike,var.equal=TRUE)
Tuesday, December 6, 11 98
91. t
> t.test(like,dislike,var.equal=TRUE)
Two Sample t-test
data: like and dislike
t = 3.3041, df = 18, p-value = 0.003946
alternative hypothesis: true difference in
means is not equal to 0 #
95 percent confidence interval: #
0.9831754 4.4168246
sample estimates:
mean of x mean of y
7.7 5.0
Tuesday, December 6, 11 99