Computer Assignments and Tutorials
Overview
The course includes five computer assignments that progressively build your R skills and statistical analysis capabilities. Each assignment focuses on specific statistical techniques and is accompanied by a detailed tutorial. All assignments use the AppRating dataset as the primary data source, supplemented with additional datasets for practice and demonstration.
Important
Dataset Requirements:
Start here after completing Getting Started with R and RStudio and downloading Course Datasets (AppRating).
This same dataset is used throughout all five computer assignments
Additional tutorial datasets are provided for specific examples
See Course Datasets for all download links
Assignment Structure
Five separate assignments, each focusing on distinct statistical concepts:
Assignment 1: Data Exploration and Statistical Analysis
Assignment 2: Basic hypothesis testing
Assignment 3: Two-sample procedures
Assignment 4: One-way ANOVA
Assignment 5: Simple linear regression
Assignment Tutorials (Links)
Computer Assignment 1 Tutorial — Data Exploration and Statistical Analysis: CA1 Tutorial
Computer Assignment 2 Tutorial — Subsetting and Basic Statistical Inference: CA2 Tutorial
Computer Assignment 3 Tutorial — Two-sample Procedures: CA3 Tutorial
Computer Assignment 4 Tutorial — One-way ANOVA: CA4 Tutorial
Computer Assignment 5 Tutorial — Simple linear regression: CA5 Tutorial
Course Pipeline (At a Glance)
Import:
read.csv→ inspect withhead,str,summary.Validate & clean: missing data (
is.na,complete.cases), types (as.numeric,factor), quick checks (length,nrow,unique).Explore: core summaries (
mean,median,sd,quantile,IQR), plots (ggplot2histograms/boxplots).Model: one/two-sample t; ANOVA; SLR via
lm; compute p-values/intervals; diagnostics (residual plots, QQ).Report: figures/tables (
ggplot2,knitr::kable+kableExtra), short text with context.
If you cannot see the plots
You can check the assumptions in these assignments with numbers instead of by eye. For normality of a sample, of each group, or of regression residuals, compare the proportions of values within one, two and three standard deviations of the mean with 0.68, 0.95 and 0.997, and compare the ratio \(IQR/s\) with 1.35 (see Numerical Assessments for Normality in Section 6.4). For equal variances, the ratio of the largest to the smallest sample standard deviation should be at most 2. The R package BrailleR describes a ggplot saved as p in text: VI(p) gives the median, quartiles, whisker ends and number of outliers of each box in a boxplot, and VI(p, threshold = 50) lists each bar of a histogram and each point of a scatterplot. Install it with install.packages("remotes") and then remotes::install_github("ajrgodfrey/BrailleR").
More Help and Reference Pages
If you need additional support while working through the computer assignments, use the following pages:
Function reference and examples: Function Reference Part 1, Function Reference Part 2: Inference Functions
ggplot2 plotting guide: Graphics (ggplot2)
Best practices and workflow: Best Practices & Common Pitfalls
Additional external resources: Alternative Resources (Tutorials)
Quick lookup table: Quick Reference