2021 - 2022: Schedule

Here’s your roadmap for the semester!

  • Readings should be completed before each class session
  • Class materials (slides, in-class activities, etc.) will be added on the day of class

📝 Course outline: Click here

Week 0: R and RStudio Installation

Welcome you all to STA 517 3.0 Programming and Statistical Computing with R 👏

To participate in the lectures, please bring a laptop with R and RStudio installed.

💻 Click here to view the installation guideline

Week 1: Introduction to R, RStudio and R Programming Basics

Slides-1 Slides-2 Reading [2.1, 2.2, 5.1] Cheat sheet R-script Problems Exercise 1 Exercise 2 Answers: Tutorial discussion

Week 2: Data Structures in R (Vector, Matrix, Array, Data Frame, List)

Slides-2 Reading Cheat sheet R-script Exercise 3 Answers: Tutorial discussion

Week 3: Built-in functions in R

Slides - 3 Reading - 2.3 Reading-qplot Cheat sheet R-script Exercise 4 Exercise 5 Answers

Week 4: Writing functions in R

Slides-4 Reading[Ch 19]) Cheat sheet R-script Exercise Answers

Week 5-1: Control structures

Slides-5.1 Reading[Ch 19]) Cheat sheet R-script Exercise Answers

Week 5-2: Introduction to the tidyverse, pipe operator and data import and export

Slides-5.2 Reading Cheat sheet R-script Exercise Answers

Week 6: Reproducible reporting with R Markdown

Slides Reading Cheat sheet R-script Exercise Answers

🖥️ R Labwork

Rmarkdown_practical_lesson_21.Rmd

sampleimage.png

Output: Rmarkdown_practical_lesson_21.html

Data import and export

Slides Reading - Ch 11 Cheat sheet R-script Exercise Answers

Week 7: Mid-Exam

Mid-Exam - 1

Week 7: Data wrangling with tidyr and dplyr

Reshaping Data

Slides Reading-R4DS Ch 12 Cheat sheet R-script Problems-R4DS Ch 12 Exercises Answers

Data Manipulation

Slides Reading-R4DS Ch5 Video Lecture Cheat sheet Problems-R4DS Ch5 Exercises Answers

Week 8: The grammar of graphics

Slides Reading Cheat sheet R-script Exercise Answers

Week 9: Introduction to statistical modelling

Slides Reading Cheat sheet Data Exercise Answers

Week 10: Methods of generating random numbers

Slides Reading Cheat sheet R-script Exercise Answers

Week 11: Hypothesis testing

Data Analysis:

Spatial data visualization

Kenya Census: download data

Handling missing values

African Names Database

Data description: here

african_names <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-06-16/african_names.csv")

Week 12: Hypothesis Testing

Slides Reading - Inference Notes Cheat sheet R-script Problems Answers

Week 13: Functional programming with R

Slides Reading Cheat sheet R-script Problems Answers

Week 14: Bootstrap and Jackknife

Slides Reading Cheat sheet R-script Exercise Answers

Week 15: Recap

Exercise
Recap