This repository contains notes to be read during short video presentations for students using R in a second course in statistics at SFU. The presentations were prepared by Jinko Graham and Brad McNeney, Department of Statistics and Actuarial Science, Simon Fraser University.
- Presentations are meant to be short and may go fast in places -- use the pause and replay on the video as necessary.
- When the topic of the presentation is a statistical method, it is assumed that the viewer has already studied the method and is looking for a demonstration of how to apply the method in R.
The order of presentations is:
-
Overview (this file)
-
Getting started
- What is R?
- Why use R?
- Functions in R
- Running R on Jupyter (optional)
- Installing R on your computer (optional)
- Installing RStudio on your computer (optional)
-
Reading data into R
- Data sets as "objects" in R
read.csv()
read.table()
head()
,print()
,summary()
View()
(optional)
-
Extending R and R packages
- Writing your own functions
- What are packages?
- Installing packages (optional)
- Loading packages
- The "tidyverse"
-
Inference for means and proportions
- Inference for means with
t.test()
- Inference for proportions with
prop.test()
- Inference for means with