Intro to Conjoint Experiments | Exercise - 1

1 Environment preparation

# ### Data import ###
# install.packages("readr")     # read datasets
# install.packages("qualtRics") # read qualtrics datasets
# install.packages("here")      # absolute path management
# ### Data manipulation ###
# install.packages("dplyr")     # pipes and data manipulation
# ### Visualization ###
# install.packages("ggplot2")    # graphing capabilities
# ### Estimation ###
# install.packages("cjoint")    # base amce package
# install.packages("cregg")     # amce and mm 
# install.packages("factorEx")  # amce with non-uniform distribution

## Custom build functions 
# library(devtools)
# install_github("albertostefanelli/cjoint") # fixes some problem with cjoint

### Data import ###
library("readr")     
library("qualtRics") 
### Data manipulation ###
library("dplyr")     
### Visualization ###
library("ggplot2")    
### Estimation ###
library("cjoint")   
library("cregg")     
library("factorEx")  

2 Data

We are going to use the data from Kirkland, Patricia A; Coppock, Alexander, 2017, “Replication Data for: Candidate Choice Without Party Labels: New Insights from Conjoint Survey Experiments”, https://doi.org/10.7910/DVN/WSUHI3.

3 Codebook

The data has no codebook so we need to load it and understand how it is structured.

4 Exercise 1

  1. Load the data
  2. What’s the sample size?
  3. What the variable contest_no refers to?
  4. How can the respondent-varying characteristics can be identified?
  5. Do we have any info on the ‘quality’ of the data?
  6. What’s the main difference between how the data is organized here and the one presented in the Lab 1?
kc_data <- readr::read_csv("https://github.com/albertostefanelli/conjoint_class/raw/master/data/Kirkland_Coppock_mturk_replication.csv")