Preface

This is a companion to the book Statistics: Data analysis and modelling. It covers how to perform the analyses discussed in that book, mostly using “base” R and a relatively small selection of add-on packages.

R is a programming language and environment specifically designed for data analysis. It is flexible, relatively fast, and has a large number of users and contributors. However, R is known to have a somewhat steep learning curve, so if you want to learn R, you will have to put in some extra effort (compared to e.g. JASP or SPSS). This effort will certainly pay off in the end, but it is up to you to decide whether you want to make this investment.

This companion is meant to show you how to use R to do the types of analyses covered in “Statistics: Data analysis and modelling.” It is certainly not meant as a complete course on R. There are lots of good resources on R available on the internet and I suggest that, if you are serious about learning R, you also look elsewhere. Some sources you might find useful are:

0.1 Acknowledgements

Parts of these notes were adapted from other sources (if there is a licence allowing that). I acknowledge these sources in the text or footnotes.