immigration {FactorHet} | R Documentation |
Small dataset on immigration preferences
Description
An example dataset of 100 randomly chosen respondents from the replication
data in Hainmueller and Hopkins (2015). Only a small selection of the factors
and moderators in the original experiment are included in this example
dataset. The full data can be downloaded from the replication archive in
"Source" below. The original paper provides more details on all variables.
The replication data for Goplerud et al. (2025) provides code to process and
analyze the original data using FactorHet
.
Usage
immigration
Format
A data frame with 1000 rows and 10 variables:
- CaseID
Unique identifier for respondent.
- contest_no
Task number (1-5) for each respondent.
- choice_id
Identifier for the profile shown, i.e., was it the "left" or "right" profile.
- Chosen_Immigrant
Immigrant profile chosen by respondent.
- Country
Immigrant's country of origin.
- Ed
Immigrant's education level.
- Plans
Immigrant's employment plans after arrival.
- Gender
Immigrant's gender.
- party_ID
Respondent's party identification.
- census_div
Level of immigration in respondent's ZIP code.
Source
References
Goplerud, Max, Kosuke Imai, and Nicole E. Pashley. 2025. "Estimating Heterogeneous Causal Effects of High-Dimensional Treatments: Application to Conjoint Analysis." arxiv preprint: https://arxiv.org/abs/2201.01357
Hainmueller, Jens and Daniel J. Hopkins. 2015. "The Hidden American Immigration Consensus: A Conjoint Analysis of Attitudes Toward Immigrants." American Journal of Political Science 59(3):529-548.