The handout aims at familiarising students with the statistical package RJAGS, and with more ‘sophisticated’ Bayesian hierarchical models than those in the Lecture handouts.
Students will be able to:
- use cvd package in R, by using the reference material, for the statistical analysis of contingency tables.
Handouts and Exercises for Contigency tables, and Log linear models
Handouts and Exercises for Likelihood methods
Sheet for Computer practical 1 (questions) ; (solutions)
Sheet for Computer practical 1a (questions) ; (solutions)
Sheet for Computer practical 2 (questions) ; (solutions)
The material below is not examinable material, but it contains references that students can follow if they want to further explore the concepts introduced.
- Reference for R:
- Reference of rmarkdown (optional)
- Reference for Latex (optional):
-
Go to Appsanywhere and log in with your CIS account details
From AppHub, load the modules:
-
Git (wait until it opens)
-
LaTex (Latex - Miktex Texworks 2.9.6753) (wait until it opens)
-
rstudio (RStudio 1.2.5003 with RStan and Rtools) (wait until it opens)
There is not need to do this in CIS computers as the required foftware is (supposed to be) properly installed.
The instructions below are at your own risk…
We recommend the use of LINUX operation system.
Briefly, you need to do the following:
- Install LaTex (optional but recommended)
- Source: download it from https://www.tug.org/texlive/acquire-netinstall.html
- Debian: apt-get install texlive-full
- Fedora: yum install texlive texlive-latex
- windows: download it from https://miktex.org/howto/install-miktex
- macos: download it from https://www.tug.org/mactex/
- Install R computing environment version R 3.6.3 or later.
- Source: download the installer from: https://cran.r-project.org/, and install it according to the installation instructions
- Debian: sudo apt install r-base
- Fedora: yum install -y R
- windows: download it from https://cran.r-project.org/
- I recomend tyou to install Rtools as well, for you to be able to instal R packages.
- macos: download it from https://www.tug.org/mactex/
- Install the latest Rstudio (recommended)
- Any OS: Download it from here: https://www.rstudio.com/products/rstudio/download/