Statistical Computing (Stat 128)
Selected course materials for Stat 128 (Fall 2022). Class is presented as a hands-on workthrough of each lab. If you want to go through the lab, I recommend downloading the original RMarkdown file and working through it in RStudio. Original RMarkdown files can be found here. Labs borrow heavily from work by Rebecca Kurtz-Garcia.
Labs
- Introduction to R, RStudio, and RMarkdown
- Vectors and Factors
- Lists
- Matrices and Data Frames
- Working with Data Sets
- Functions
- If Statements
- Base R Plotting
- Loops
- Apply Type Functions
- Some Inference (adapted from a lab by Josh Edge)
- Regression
- Recursive Partitioning (adapted from Clark Fitzgerald’s Stat 128 rpart code).
- Simulation
- Bootstrap (adapted from James Flegal)
- ggplot2
- TidyVerse
- Text Data