Skip to main content
HomeR

Analyzing Survey Data in R

Learn survey design using common design structures followed by visualizing and analyzing survey results.

Start Course for Free
4 hours14 videos49 exercises13,298 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


Course Description

You've taken a survey (or 1000) before, right? Have you ever wondered what goes into designing a survey and how survey responses are turned into actionable insights? Of course you have! In Analyzing Survey Data in R, you will work with surveys from A to Z, starting with common survey design structures, such as clustering and stratification, and will continue through to visualizing and analyzing survey results. You will model survey data from the National Health and Nutrition Examination Survey using R's survey and tidyverse packages. Following the course, you will be able to successfully interpret survey results and finally find the answers to life's burning questions!
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.

In the following Tracks

Statistician in R

Go To Track
  1. 1

    Introduction to survey data

    Free

    Our exploration of survey data will begin with survey weights. In this chapter, we will learn what survey weights are and why they are so important in survey data analysis. Another unique feature of survey data are how they were collected via clustering and stratification. We'll practice specifying and exploring these sampling features for several survey datasets.

    Play Chapter Now
    What are survey weights?
    50 xp
    Survey weights
    50 xp
    Visualizing the weights
    100 xp
    Specifying elements of the design in R
    50 xp
    Designs in R
    100 xp
    Stratified designs in R
    100 xp
    Cluster designs in R
    100 xp
    Comparing survey weights of different designs
    100 xp
    Visualizing the impact of survey weights
    50 xp
    NHANES weights
    100 xp
    Tying it all together!
    100 xp
  2. 2

    Exploring categorical data

    Now that we have a handle of survey weights, we will practice incorporating those weights into our analysis of categorical data in this chapter. We'll conduct descriptive inference by calculating summary statistics, building summary tables, and constructing bar graphs. For analytic inference, we will learn to run chi-squared tests.

    Play Chapter Now
  3. 3

    Exploring quantitative data

    Of course not all survey data are categorical and so in this chapter, we will explore analyzing quantitative survey data. We will learn to compute survey-weighted statistics, such as the mean and quantiles. For data visualization, we'll construct bar-graphs, histograms and density plots. We will close out the chapter by conducting analytic inference with survey-weighted t-tests.

    Play Chapter Now
  4. 4

    Modeling quantitative data

    To model survey data also requires careful consideration of how the data were collected. We will start our modeling chapter by learning how to incorporate survey weights into scatter plots through aesthetics such as size, color, and transparency. We'll model the survey data with linear regression and will explore how to incorporate categorical predictors and polynomial terms into our models.

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

In the following Tracks

Statistician in R

Go To Track

datasets

Quarter 4 of the 2016 BLS Consumer Expenditure Survey

collaborators

Collaborator's avatar
Chester Ismay
Collaborator's avatar
Becca Robins
Collaborator's avatar
Eunkyung Park
Kelly McConville HeadshotKelly McConville

Assistant Professor of Statistics at Reed College

See More

What do other learners have to say?

Join over 15 million learners and start Analyzing Survey Data in R today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.