Introduction
1
Why use R?
1.1
Directions
1.2
A closer look at the code
2
Summary Stastics with R
2.1
Directions
2.2
A closer look at the code
2.3
R code used in the VoiceThread
2.4
Now you try
Example
R Code Window
3
Line Plots with R
3.1
Directions
3.2
A closer look at the code
3.3
R code used in the VoiceThread
3.4
Now you try
Example
R Code Window
4
Bar Plots with R
4.1
Directions
4.2
A closer look at the code
4.2.1
Let’s make a simple bar plot
4.2.2
Let’s add a title and label the x-axis
4.2.3
Let’s calculate average miles per gallon by the number of cylinders
4.2.4
Let’s make a bar plot of average miles per gallon by the number of cylinders
4.2.5
Let’s make the bar plot better
4.3
R code used in the VoiceThread
4.4
Now you try
R Code Window
5
Histograms with R
5.1
Directions
5.2
R code used in the VoiceThread
5.3
Now you try
R Code Window
6
Boxplots with R
6.1
Directions
6.2
R code used in the VoiceThread
6.3
Now you try
R Code Window
7
Working with the Normal Distribution
7.1
Directions
7.2
A closer look at the code
7.2.1
Let’s learn to use the
pnorm()
command
7.2.2
Let’s learn to use the
qnorm()
command
7.3
R code used in the VoiceThread
7.4
Now you try
8
Working with Student’s t Distribution in R
8.1
Directions
8.2
A closer look at the code
8.2.1
Let’s learn to use the
pt()
command
8.2.2
Let’s learn to use the
qt()
command
8.3
R code used in the VoiceThread
8.4
Now you try
9
Calculating Confidence Intervals in R
9.1
Directions
9.2
A closer look at the code
9.2.1
Calculate a confidence interval
9.3
R code used in the VoiceThread
9.4
A much easier way:
9.5
Now you try
10
Conducting One-sample t-test in R
10.1
Directions
10.2
A closer look at the code
10.2.1
Conduct the t-test
10.3
R code used in the VoiceThread
10.4
Now you try
11
Conducting Two-sample t-test in R
11.1
Directions
11.2
A closer look at the code
11.2.1
Conduct the t-test
11.3
R code used in the VoiceThread
11.4
Now you try
12
Conducting One and Two-proportion Tests in R
12.1
Directions
12.2
A closer look at the code
12.2.1
One-sample Proportion test
12.2.2
Two-sample Proportion test
13
Conducting t-tests for Matched or Paired Samples in R
13.1
Directions
13.2
A closer look at the code
13.2.1
One-sample Proportion test
13.2.2
Repeat the same problem with a stacked data frame
13.3
Now you try
14
How to create a scatterplot in R
14.1
Directions
14.2
A closer look at the code
14.3
Now you try
15
How to Conduct Linear Regression in R
15.1
Directions
15.2
A closer look at the code
15.2.1
Scatterplot
15.2.2
Summary statistics
15.2.3
Estimate linear regression
15.2.4
Scatterplot With Regression Line
15.2.5
Residual Diagnostics
15.3
Now you try
R Practices for Learning Statistics
R Practices for Learning Statistics
Logan Kelly, Ph.D.
2020-11-20
Introduction