Survey Data Analysis in R: A Crash Course
Course Description
Are you looking for a resource that helps you quickly learn survey data analysis in R?
This goal-oriented crash course discusses the 15 most widely used tasks for survey data analysis in R.
This course differs from most of the publicly available resources in the following ways:
Learning objectives
By completing this course, you should be able to:
Prerequisites
There are no prerequisites for this course. All the materials are provided in English. Video lecturs include English transcripts, which can be translated into other languages (on YouTube).
Lecture Videos
Module 1
This module uses data from the National Financial Well-Being Survey conducted by the Consumer Financial Protection Bureau.
Module 2
Module 3
Course Resources
This course does not require any textbooks.
The written versions of these contents are available here.
Software
You should have RStudio (Posit) installed on your computer. Alternatively, you can use the cloud version of RStudio.
Contact
If you have any questions/concerns/suggestions regarding any of the topics discussed in this crash course, feel free to reach out to me at: vivekbd92(at)gmail(dot)com
Course Description
Are you looking for a resource that helps you quickly learn survey data analysis in R?
This goal-oriented crash course discusses the 15 most widely used tasks for survey data analysis in R.
This course differs from most of the publicly available resources in the following ways:
- • It uses real-world survey datasets rather than using idealized fictional datasets
- • It teaches you specific tasks relevant to survey data analysis rather than teaching generic task
- • It uses functions from only three packages (i.e., dplyr, ggplot2, and fixest) rather than using functions from zillions of packages,
- which many beginners in R find overwhelming
- • It helps you learn readily applicable skills within a short period rather than demanding your commitment for an entire semester
Learning objectives
By completing this course, you should be able to:
- • Begin survey data analysis in R for your research purpose
- • Apply many of the lessons learned from this course in contexts beyond survey data analysis
- • Tidy up your pre-existing knowledge of coding in R
Prerequisites
There are no prerequisites for this course. All the materials are provided in English. Video lecturs include English transcripts, which can be translated into other languages (on YouTube).
Lecture Videos
Module 1
- 1. Importing a .csv file directly from the web [Video Link]
- 2. Creating a subset (Selecting specific rows) [Video Link]
- 3. Selecting specific columns [Video Link]
- 4. Creating a binary (a.k.a. dummy) variable [Video Link]
- 5. Renaming the levels of a categorical variable [Video Link]
- 6. Creating a new categorical variable [Video Link]
- 7. Creating a summary statistics table [Video Link]
- 8. Creating a barplot [Video Link]
This module uses data from the National Financial Well-Being Survey conducted by the Consumer Financial Protection Bureau.
Module 2
- 1. Importing a .csv file from your local drive
- 2. Merging multiple waves of a survey by common columns (Binding rows of multiple dataframes)
- 3. Creating a line chart
- 4. Exporting tables and graphs to your local drive
- 5. Estimating an empirical model using linear regression
Module 3
- 1. Merging multiple segments of a survey by common columns (Binding columns of multiple dataframes)
- 2. Creating a histogram
- Extra Lecture 1: Creating a stacked barplot
- Extra Lecture 2: Combining R and Excel/Word
Course Resources
This course does not require any textbooks.
The written versions of these contents are available here.
Software
You should have RStudio (Posit) installed on your computer. Alternatively, you can use the cloud version of RStudio.
Contact
If you have any questions/concerns/suggestions regarding any of the topics discussed in this crash course, feel free to reach out to me at: vivekbd92(at)gmail(dot)com