Here’s your roadmap for the semester!

  • Readings should be completed before each class session
  • Assignments are due by 3:00 PM on the day they are due
  • Class materials (slides, in-class activities, etc.) will be added on the day of class

Week 1: University holiday - Independence day, February 4, 2020

Week 2: Introduction and Basics of R Programming

Welcome you all to STA 326 2.0 Programming and Data Analysis with R πŸ‘

Slides Reading [2.1, 2.2, 5.1] Cheat sheet Problems Answers

Week 3: Data Structures (Matrices, Arrays, List, Data Frame, Factors)

Slides Reading [5.3 - 5.8] Cheat sheet Problems Answers

Week 4: Functions in R

Slides Reading[Section 2.3] Cheat sheet Problems Answers

Week 5: Writing Functions in R and Control Structures

Slides Reading[Ch 19] Cheat sheet Problems Answers

Week 6: Simulations

πŸ“To be continued.

Slides: 5.1 Slides: 5.2 Reading Cheat sheet Problems Answers

COVID-19 outbreak: study materials


! Please go to Google Classroom for up-to-date information and announcements.

Week 7: The Tidyverse

  • Introduction to the tidyverse

  • Introdcution to tibble, factors, pipe (week 8)

Slides-intro Reading-Ch1 Reading-Ch2 Video Lecture Problems Answers
Slides-tibble Reading-Ch10 Video Lecture Problems-R4DS-Ch10.5 Answers
Slides-factors Reading-5.5.2 Video Lecture Problems Answers R-script

Week 8: The Tidyverse

Pipe Operator

Slides-pipe (%>%) Reading-Ch18 Video Lecture Problems Answers

Data Import and Export

Slides Reading-Ch 11 Cheat sheet Video Lecture

Week 9: Reproducible Reporting with R Markdown

Slides Reading-Ch 27 Cheat sheet Reference Guide Video Lecture R Labwork ‡️

πŸ–₯️ R Labwork

Rmarkdown_practical_lesson1.Rmd

sampleimage.png

Output: Rmarkdown_practical_lesson1.html

Week 10: Data Wrangling

Reshaping data

Slides Reading-R4DS Ch 12 Video Lecture Cheat sheet Problems-R4DS Ch 12 Exercises Answers

Data manipulation

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

πŸ–₯️ R Labwork

Lab-Data Wrangling

Answers: Available on Google Classroom and LMS.

Week 11: The Grammar of Graphics

Slides Video Lecture Reading-Ch3 Cheat sheet Problems-Ch3 Answers

πŸ–₯️ R Labwork

  • Perform an exploratory data analysis on gapminder dataset and prepare a small report using Rmarkdown.

  • Perform an exploratory data analysis on diamonds dataset and prepare a small report using Rmarkdown.

Week 12: Individual project πŸŽ“

Assignment: Individual Project

Go to LMS. Deadline: 20 July 2020

Week 12: Regression Analysis with R

Slides Reading-broom Video Lecture Problems Answers

πŸ–₯️ R Labwork

Data-facebookdata_marketing.rds

Week 13: The Inverse Transform Method

Slides-Lectorial Video Lecture Problems Answers

Use the upgraded LMS at https://lms.fas.sjp.ac.lk to download video lectures.

Week 14: The Method of Monte Carlo

Slides-Lectorial Video Lecture Problems Answers

Week 15: Hypothesis testing

Hypothesis testing Reading - 2nd year Inference Notes Video Lecture Problems Answers

Week 16: Functionals and Recap (instead of Independence holiday week)

Slides Reading Cheat sheet Video Lecture Problems Answers
Recap

Individual projects

Individual Projects - 2020

Individual Projects 2020: Covid-19 Situation Reports

Discussions

Discussion week questions