R for STAT216 @ FVCC
1
About
1.1
Organization
1.2
Getting started
1.3
Code in this book
1.4
Help
1.5
Debugging
1.6
Other resources
2
RStudio basics
2.1
A big calculator
2.1.1
Numbers
2.1.2
Strings
2.1.3
Logicals and Logical operators
2.2
Naming things
2.3
Lists and vectors
2.3.1
Creating lists
2.3.2
Subsetting lists
2.3.3
Special lists
2.3.4
List arithmetic
2.4
Packages
2.5
Data frames and tibbles
2.5.1
Creating data frames
2.5.2
Using data frames
2.6
R Markdown documents
3
Summary statistics and data visualization
3.1
Summary statistics in R
3.1.1
Numerical variables
3.1.2
Categorical variables
3.1.3
Combining it all
3.2
Data visualization
3.2.1
Base R
3.2.2
ggplot2
3.2.3
Saving plots
4
Wrangling data
4.1
The goal: “tidy” data.
4.2
The pipe
4.3
Common tidying operations
4.4
Mutate, group by, and summarize
5
Distribution calculations
5.1
Finite discrete distribution calculations
5.2
Named distribution calculations
5.2.1
Discrete random variables
5.2.2
Continuous random variables
6
Inferential statistics: Take 1
6.1
Basics of statistical inference
6.1.1
Sampling distributions
6.1.2
Confidence intervals
6.1.3
Hypothesis tests
6.2
Analyzing categorical variables
6.2.1
Single sample proportion
6.2.2
Two sample proportion
6.2.3
Chi-squared tests
6.3
Analyzing numerical variables
6.3.1
Single sample mean
6.3.2
Two sample mean
6.3.3
Paired data
6.3.4
Analysis of variance (ANOVA)
7
Inferential statistics, take 2
7.1
Analyzing categorical variables
7.1.1
Single sample proportions
7.1.2
Two sample proportions
7.1.3
Chi-squared goodness of fit test
7.1.4
Chi-squared test of independence
7.2
Analyzing numerical variables
7.2.1
Single sample mean
7.2.2
Two sample mean comparison
7.2.3
Paired data
7.2.4
Analysis of variance (ANOVA)
8
Modeling relationships
8.1
Simple linear regression
8.1.1
The basics
8.1.2
Model fit
8.1.3
Hypothesis testing
8.1.4
Prediction
8.2
Multiple linear regression
References
Published with bookdown
R and RStudio for STAT216
References