# Advanced Statistics Training for Climate Research
University of Bergen

### Information

The course will consist of nine 1-hour lectures and 8 hours of hands-on computer sessions. The lectures will take place in the mornings and are followed by practical sessions with the R software in the afternoons.

Links to the lecture notes, R code and dataset for the practical sessions are provided below.

- Course programme
- Lecturers: Prof David B. Stephenson and Dr Theo Economou,
  Exeter Climate Systems, University of Exeter, UK.

### Lecture notes

1. Introduction | Prof David Stephenson | Powerpoint | PDF
2. Exploratory Data Analysis | Prof David Stephenson | Powerpoint | PDF
3. Introduction to R | Dr Theo Economou | Powerpoint | PDF
4. Probability Models | Dr Theo Economou |  | PDF
5. Regression Modelling | Prof David Stephenson | Powerpoint | PDF
6. Multivariate Statistics | Prof David Stephenson | Powerpoint | PDF
7. Statistical Inference | Dr Theo Economou | Powerpoint | PDF
8. Time series modelling | Dr Theo Economou | Powerpoint | PDF
9. Extreme value modelling | Prof David Stephenson | Powerpoint | PDF

### The practical sessions

- In the practical sessions, the students execute line per line the R commands contained in a number of scripts provided below.
- For the first session on 30 August, we provide a summary worksheet to guide the students.
- The first practical R session on 30 August will be preceded by a step-by-step explanation of the basic commands of R (lecture 3 above, led by Theo Economou). Students just watch and repeat.

The following steps needs to be performed just once:

1. log in into your UiB Linux accounts;
2. download the full package of R scripts and datasets and the course notes:
   http://secamlocal.ex.ac.uk/people/staff/rv211/Bergen2011/Bergen2011.zip ;
3. unzip the archive with the command "unzip Bergen2011.zip".

This should create a directory "Bergen2011/". All the R scripts, datafiles and lecture notes are, respectively, in the directories:
Bergen2011/practicals/
Bergen2011/practicals/Data/
Bergen2011/lectures_in_powerpoint/
Bergen2011/lectures_in_pdf/
Alternatively, you can download the individual R scripts and datafiles from the links provided below.

### Individual R scripts and datasets for the practical sessions

(Only to be done if the previous step has not worked)

- loadpackages.R (to be sourced from the R terminal before every session, see the summary worksheet).
- 1_Introduction_to_R.R (30 August).
- 2_EDA.R (30 August).
- 4_Probability_Models.R (31 August).
- 5_Regression_Modelling.R (31 August).
- 6_Multivariate_Statistics.R (1 September).
- 7_Statistical_Inference.R (1 September).
- 8_Time_Series_Modelling.R (2 September).
- 9_Extreme_Value_Modelling.R (2 September).

Please create a directory "Data/" in the same directory where you downloaded the R scripts above and download all the files contained in this directory into "Data/".

### Useful links

- Webpage of the R project.
- An Introduction to R and all the other official R manuals.
- A particularly nice and concise guide to R: R for beginners.
- Contributed R documentation.