Lab activities - R version
Lab 1: 28 Aug
- Lab 1 activities Read this first
- Lab 1 data sheet for rocks and randomization exercises
- Introduction to R Getting started with R.
- Reading .csv files, numeric and graphical summaries using base graphics
- Reading .csv files, numeric and graphical summaries using tidyverse commands and ggplot graphics
Lab 2: 4 Sept (repeating some material from lab 1)
- Reading .csv files, numeric and graphical summaries using base graphics
(new material on copying a graph to Word)
- Reading .csv files, numeric and graphical summaries using tidyverse commands and ggplot graphics
- Reading .txt files, doing a randomization test
- Lab 2 self assessment
Lab 3: 11 Sept
Lab 4: 18 Sept
Lab 5: 25 Sept
- hamburger.r R code file (Wilcoxon rank sum, diagnostics, transformations)
This week, focus on the diagnostics and log transformation material.
- hamburger.pdf Explanation of code in hamburger.r.
- hamburgerV2.docx Tidyverse and ggplot2 version of the diagnostics and transformations part of hamburger.r with explanations
- hamburgerV2.r Tidyverse and ggplot2 code for hamburger.r diagnostics and transformations. Just the R code.
- patty.r R Code file to averaging groups of observations
- patty.pdf Explanation of code in patty.r
- patty.txt Hamburger patty data with multiple measurements
- Lab 5 self assessment
- fishprice.csv fish price data (wide format) for self assessment
- fishlong.csv fish price data (long format) for self assessment
Lab 6: 2 Oct, self assessment on choosing an analysis, material for HW after the exam
Lab 7: 16 Oct
Lab 8: 23 Oct
Lab 9: 30 Oct
Lab 10: 6 Nov
Non-lab: 15 Nov:
- Intro to multiple regression: Labeling plots, scatterplot matrices, correlation,
Multiple regression
Lab 11: 20 Nov - lots of files this week.
- Quadratic and cross product terms
- Diagnostics
- brain3.r Standardized residuals, Cook's D, VIF
- brain3.pdf Explanation of code in brain3.r
- brain.txt Data file for brain3.r (same datafile as for brain1.r)
- Running analyses on subgroups, Models with both continuous and grouping variables
- Self assessment on multiple regression
Lab 12: 4 Dec