Skip to contents

Introduction

A list experiment (also called the item-count technique) is a method for indirectly measuring private opinion for issues where individuals might otherwise be likely to publicly withhold their true opinion.

List experiments work by guaranteeing privacy. Unlike traditional survey methods, respondents are never asked to directly share their opinion about individual statements. Instead, respondents are asked to read a list of statements and choose the number with which they agree.

By comparing a group of people who see a list that includes the sensitive statement (i.e., the treatment group) to a group of people who see a list without the sensitive statement (i.e., the control group), we can make inferences about the prevalence of that private opinion in a population.

A typical list experiment question looks like this:

List Experiment Example
List Experiment Example

The prevalence of an opinion is cleverly devised through the randomization process, and is simply the difference in means between the number of endorsed statements by the treatment and control group. Recent advancements in statistics and multivariate modeling have led to more sophisticated analyses (Blair & Imai, 2012; Blair et al., 2014) allowing for more informative interrogation of the data.

When to use list experiments?

  • When you want to learn about the prevalence of sensitive attitudes, perceptions, or behaviors
  • When privacy is imperative for honest self-reporting
  • When you want to know if there’s a gap between public and private opinions
  • When you want to know who is more likely to withhold their public opinion

Using g6tr.list

For details on how to use particular functions please take a look at the vignette. Below we present a short summary of the package content.

Content

This package allows you to estimate List Experiment models. Currently it contains the following functions:

  • list_read_data() – reads, extracts and formats data from your survey for the List Experiment.
  • list_assert_data() – performs a series of checks and removes responses that do not match expectations.
  • list_tidy_data() – takes the asserted dataset and assures that the data is correctly formatted to be used by list_model() function.
  • list_model() – to calculate models using STAN under the hood.
  • list_model_results – takes model output and calculates parameters quantiles, simulated data summary, probabilities of saying Yes to direct and indirect questions, differences of probability and differences of raw means of treatment, control and direct question.
  • list_summary_stats() – checks if rhats are lower than 1.05 and returns draws summary for betas, intercepts and particular respondents.
  • list_predict() – allows to make prediction by respondent based on demographic variables.
  • list_predict_demo() – to make summary of predicted probabilities and their difference for any of the categorical demographic variables.

For testing purposes, we’ve attached two datasets:

  • list_experiment_df – data ready to be passed to list_model()
  • list_experiment_toy – raw data from survey to be used in whole workflow (read >> assert >> tidy >> model)

Datasets

Datasets can be accessed via:

library("g6tr.list")
library("dplyr")
dataset("list_experiment_df")
dataset("list_experiment_toy")

Reading list data

list_data <- list_read_data(list_experiment_toy, response_id)

Read list data and return a data.frame with response to direct and experiment questions, group and response_is, suitable for the rest of the list_ functions family. Check ?list_read_data for more information.

Asserting the data

# We select 3 categorical variables as demographic breaks and one artificial
# numeric variable just for the purpose of demonstration.
demo_toy <- list_experiment_toy %>%
  select(response_id, d_party, s_gender, s_region) %>%
  mutate(num_var = rnorm(nrow(.), 3, 0.4))

# First we need to read List Experiment data and pass the results
# to list_assert_data() along with demo data.
le_data_toy <- list_read_data(list_experiment_toy, "response_id")
list_data_asserted <- list_assert_data(le_data_toy, demo_toy, "response_id", 4L)

This function takes the list_read_data() object and a data.frame with demographic (break) as an input and will assert if the data is correct. If it’s not, it will tell you where changes need to be made to the initial data frame, or make the changes automatically. E.g. filtering respondents and checking if all responses to experimental and direct question are in correct range. The function will return a six element list with asserted data for list experiment in data_le, asserted data for direct (sensitive) question in data_direct, the number of non-sensitive items tested in n_items, demographic (breaks) tibble in demo and two tibbles containing dropped responses with the reason to drop in removed_responses (for list experiment and direct question) and in removed_demo for demographic variables. Check ?list_assert_data for more information.

Tidying the data

list_data_tidied <- list_tidy_data(list_data_asserted, response_id)

This function takes the output from list_assert_data() and makes final adjustments to the data so it can be directly passed to list_model(). The output of the function contains 4 elements: data_le, data_direct, grid (demographic data recoded to dummy variables set) and predictors (names of the columns from grid). Check ?list_tidy_data for more information.

Modeling the data

We can pass the output object of list_tidy_data() directly to to the list_model() function call.

list_data_model <-
  list_model(
    list_data_tidied, model = "g6trliststan", iter = 500, chains = 2, cores = 2
  )

Currently the function uses precompiled STAN model for to calculations. Model validation and post-processing will be available soon.

Model results

list_model_results will calculate summary of List Experiment. The output includes: parameters quantiles, simulated data summary, probabilities of saying Yes to direct and indirect questions, differences of probability and differences of raw means of treatmen, control and direct question

model_results <- list_model_results(list_data_model, list_data_tidied)

Extracting summary statistics

To check if model converged (all rhat values below 1.05) and calculate summary statistics we can pass model output and tided data to list_summary_stats().

model_summary <- list_summary_stats(list_data_model)

The output will print message about rhats and return list with summary statistics for betas, intercepts and individual respondents.

Making predictions from model

Per respondent

You can make predictions for new data set using list_predict().

model_predictions <- list_predict(list_data_model, list_data_tidied$grid[1:50,])

The output of predictions is a list containing: predicted probabilities of saying Yes to sensitive item in list experiment, predicted probabilities of saying Yes for direct question, and a mean of differences of those two predictions.

Per demographic variable

To make summary of predictions for a categorical variable levels you first need to set up a list of predictors and contrasts:

predictors_list <- list_make_predictors(
   tidy_data = list_data_tidied,
   demo_data = demo_toy,
   predictors_vars = c("s_gender", "d_party", "s_region")
  )

Than you can summarise predicted probabilities for any of the demographic variables:

region_predictions <- list_predict_demo(
  #predictions created with `list_predict()`
  data = new_predictions, 
  #the same grid we were using with `list_predict()`
  demo_grid = list_data_tidied$grid[1:50, ], 
  demo_var = "s_region",
  predictors_list = predictors_list$predictors_list,
  contrasts_list = predictors_list$contrasts_list
)

TODO

  • model post-processing
  • model validation