MAS Medizinphysik — Using R
excerpt from the lecture at ETHZ (1V + 1U), Autumn Sem. 2010
Cornelia Schwierz, Andreas Papritz, Martin M¨ achler <maechler@stat.math.ethz.ch>
Seminar f¨ ur Statistik, ETH Z¨ urich
January 20, 2011
0partly based on work by Werner Stahel and Manuel Koller 0slides rendered (by L
AT
EX) on January 19, 2011 1 / 154
MAS Medizinphysik — Using R
1. Introduction
In this Chapter you will ... ... learn what R is ... see a few first examples ... learn how to operate R ... learn how to read in data ... learn how to quit an R session
2 / 154
1.1 What is R?
◮ R is a software environment for statistical computing. ◮ R is based on commands. Implements the S language. ◮ There is an inofficial menu based interface called R-Commander. ◮ Drawbacks of menus: difficult to store what you do. A script of
commands
◮ documents the analysis and ◮ allows for easy repetition with changed data, options, ...
◮ R is free software. http://www.r-project.org
Supported operating systems: Linux, Mac OS X, Windows
◮ Language for exchanging statistical methods among researchers
3 / 154
1.2 Other Statistical Software
◮ S+ (formerly “S-PLUS”) same programming language,
- commercial. Features a GUI.
◮ SPSS: good for standard procedures. ◮ SAS: all-rounder, good for large data sets, complicated analyses. ◮ Systat: Analysis of Variance, easy-to-use graphics system. ◮ Excel: Good for getting (a small!) dataset ready. Very limited
collection of statistical methods. Not for serious data analysis!
◮ Matlab: Mathematical methods. Statistical methods limited.
Similar “paradigm”, less flexible structure.
4 / 154