Course overview

This course gives an introduction to the use of the msm R package for fitting and predicting from multi-state models for intermittently observed data, in typical medical applications.

There is a balance of short talks and practical exercises. In the exercises, you will write your own R code, based on the code demonstrated in the talks, to perform multi-state data analyses and answer applied questions.

All the course material will stay on this website,,

so you can follow along at your own pace, and finish exercises in your own time.

Rough timings:


Computer with R and the msm package installed.

Basic knowledge of R.

Basic statistics / probability, ideally from a medical / biostatistics perspective.

Some knowledge of survival analysis would help.


The material in this course is freely available and redistributable under the terms of the CC-BY licence.