R
This is a collection of exercises involving the statistics software package R. These exercises are used as a part of the Seminar Methodology and Statistics taught by John Nerbonne at the University of Groningen in the Spring of 2008.
These exercises have been compiled by Erik Tjong Kim Sang. If you have questions about the exercises, you can send him a mail at erikt(at)xs4all.nl
In 2008, a book about R has been published by Harald Baayen. You can download a draft version of the book (pdf) or order the book via Amazon (it costs 20 euros).
If your computer can handle it, you can also look at the online R video tutorials by Decision Science News (video 1, video 2).
Time schedule (2011)
- Thursday 3 March, 09-11, room 13.107A
- Thursday 10 March, 09-11, room 13.107A
- Thursday 17 March, 09-11, room 13.107A
- Thursday 24 March, 09-11, room 13.107A
- Thursday 31 March, 09-11, room 13.107A (by Martijn Wieling)
See also the web page by John Nerbonne
Exercises
- Starting R
- R as a calculator (section 1.1)
- Vectors in R (sections 1.2-1.4)
- Drawing graphs (sections 2.1-2.2)
- Tables in R (sections 1.2, 2.2 and 2.3)
- Working with a big dataset (sections 1.2, 1.4, 2.2, 2.3 and 2.4)
- Statistical tests in R (parts of chapter 4)
-
Probability distributions (chapter 3) -
(Anova; Logistic regression)
Mixed-effects Regression Lab Session, March 31
Note: in the lab room, this lab can only be executed on the Windows machines.
This lab will be supervised by Martijn Wieling
Case study
- Kürschner, Gooskens & Bezooijen (2008):
We will work with the data concerning the intelligibility of Swedish words among Danes. The data for this experiment can be found in the file /storage3/data/erikt/r/kuerschner-et-al.dat . Try to load the file in R. If it does not work, try to find out why it does not load.
Kürschner, Sebastian, Charlotte Gooskens and Renée van Bezooijen. Linguistic determinants of the intelligibility of Swedish words among Danes. International Journal of Humanities and Arts Computing, 83-100. (PDF)
(solution and rest of exercise)
Last update: March 30, 2011. erikt(at)xs4all.nl