About the Course
- Schedule for spring 2017
- Course information
- ECTS credits: 3.0 (hp "higher education points")
- The course literature, Medical Statistics at a Glance by Petrie & Sabin, is a good reference book that provides a quick overview of many statistical tests. The book homepage has interactive multiple choice questions. (N.B. it is not essential to buy the book to pass the course.)
If you want something more in depth you can try
- Lars Lindhagen: course responsibility, main lecturer
- Henrik Renlund: lecturer
- Patrik Öhagen: computer exercises
- Tatevik Ghukasyan: computer exercises
- Ollie Östlund: guest lecturer (clinical trials)
- Liisa Byberg: guest lecturer (epidemiology)
- Lecture 1, first part
- Lecture 1 and 2
- Lecture 3
- Lecture 4
- Lecture 5
- Lecture 6
- Lecture 7
- Lecture 8
- Lecture 9
- Lecture 10
- Lecture 11
- Lecture 12
Exam problems and data for problems 1-5 will be emailed to course participants. Contact Lars Lindhagen if you need another copy.
You are free to use whatever software you like for this course. The computer lab we will use has R, SPSS, Statistica and Minitab installed. If you have a laptop with some other software you are of course free to bring that to the exercises.
We recommend using R via 'R Commander'.
Installing R and R Commander
Begin by installing R. R's homepage can be found at www.r-project.org. From there you can follow directions but you probably want to download R from a Swedish server and (assuming you are a windows user) go via: Download R for Windows : base : Download R 3.3.1. for Windows (version number may have been updated). If you are not an administrator on your computer you might want to change the target directory during the installation, see the next section.
(In previous courses Mac users have reported getting an error message when starting R, but in all these cases they have been able to run R anyway.)
When R is installed you start it and type
to install R Commander. When installed, you start it via
(this last code has to be written every time you want to start R Commander).
Not an administrator?
If you are not an administrator on your computer, you may have trouble installing packages. This can be due to the fact that you do not have writing access to the folder (the "library") which is the default location for packages (on Windows this might be somewhere under "C:/Programs/").
The simplest solution is to change the target directory during the R installation process (e.g. to "C:/R/R-3.2.4" or similar). Then you probably will have writing access and no further changes should be needed.
Another solution is to create a separate library folder, e.g. "C:/Users/your-username/R-library/", and to tell R to look there by executing
in R. R might not remember this library path across sessions, but it is possible to put line of code in a file named ".Rprofile" that should be placed in your home directory. From R you can execute
if you do not know your home directory. The .Rprofile file will be executed when R is started.
These exercises are tailored for R via R Commander (installation instructions above).
- There are numerous R Commander tutorials on the internetz:
- R commander an introduction by Natasha Karp.
- An introduction to the 'R commander' by Theresa Scott.
- R commander tutorial from McCall Outdoor Science School.
- Getting started with the R commanderby John Fox.
- Introduction video by youtube account 'ramstatvid' (which has many more videos on R commander).
- If you want to explore R without R commander (this is an investment that is likely to be rewarding if you are going to work a lot with data) here are some places to start: