Lecture notes
Here are my lecture notes, all of them, in chronological order, with the slideshows, PDF versions of those (for printing) and the Quarto documents with the code that made the slides.
To use the documents in the Code column:
- download the code file (right click, save link as)
- upload it to
r.datatoolsif you are running R there, or
- upload it to
- move it to your course project folder if you are running R on your computer
- if it has acquired an extension other than
.qmd, rename the file (eg. it might have gained a.txton the end) - open the document in R Studio (click on the file name in Files in R Studio). It should look about the same as mine in lecture.
| Section | Slides | Code | |
|---|---|---|---|
| STAC32 course outline | Slides | Code | |
| Running R | Slides | Code | |
| Reading data files | Slides | Code | |
| Drawing graphs | Slides | Code | |
| Numerical summaries | Slides | Code | |
| Choosing things from dataframes | Slides | Code | |
| Recoding, replacing, and looking up | Slides | Code | |
| Inference: one and two-sample t | Slides | Code | |
| Bootstrap for sample mean | Slides | Code | |
| Inference: power | Slides | Code | |
| Inference: sign test | Slides | Code | |
| Inference: matched pairs | Slides | Code | |
| Inference: Mood’s median test | Slides | Code | |
| Inference: analysis of variance | Slides | Code | |
| Writing reports | Slides | Code | |
| Tidying data | Slides | Code | |
| Case study: windmill | Slides | Code | |
| Case study: alcohol metabolism | Slides | Code | |
| Regression with categorical variables | Slides | Code | |
| Functions | Slides | Code | |
| Dates and Times | Slides | Code | |
| Durations, intervals and periods | Slides | Code |