1.6 Installation

To follow the code in this book, you need a recent version of R (recommended is an R version at least 4.0). We recommend the use of RStudio.

The course also has its own R package. The aida package contains convenience functions introduced and used in this book. It can be installed by executing the following code. (More on R, packages and their installation in the next chapter.)

install.packages('remotes')
remotes::install_github('michael-franke/aida-package')

This course also requires the packages rstan and brms which let R interact with the probabilistic programming language Stan. Installation of these packages can be difficult. If you run into trouble during the installation of these packages, please follow the instructions on the Stan homepage for the most recent recommendations for installation for your OS.