Below you will find the Student Resources for the book, and you will be able to download the data sets and R scripts by chapter.

Chapter 1: Introduction

Download all the supporting files for Chapter 1: Introduction Zip file icon


Code


  1. The markdown file for the entire chapter: intro.Rmd
  2. The pdf file with outputs: intro.pdf
  3. The script for the entire chapter: intro.R
  4. The script used in Section 1.3.8: UNpop.R

Data sets


Main text

  1. World population estimates data (Table 1.2): UNpop.csv, UNpop.RData, UNpop.dta

Exercises

  1. US election turnout data (Table 1.3): turnout.csv
  2. Fertility and Mortality estimates data (Table 1.4): World.csv, Kenya.csv, Sweden.csv

Chapter 2: Causality

Download all the supporting files for Chapter 2: Causality Zip file icon


Code


  1. The markdown file for the entire chapter: causality.Rmd
  2. The pdf file with outputs: causality.pdf
  3. The script for the entire chapter: causality.R

Data sets


Main text

  1. Resume experiment data (Table 2.1): resume.csv
  2. Social Pressure Experiment Data (Table 2.4): social.csv
  3. Minimum-Wage Study Data (Table 2.5): minwage.csv

Exercises

  1. STAR Project Data (Table 2.6): STAR.csv
  2. Gay Marriage Study Data (Table 2.7): gay.csv
  3. Leader Assassination Data (Table 2.8): leaders.csv

Chapter 3: Measurement

Download all the supporting files for Chapter 3: Measurement Zip file icon


Code


  1. The markdown file for the entire chapter: measurement.Rmd
  2. The pdf file with outputs: measurement.pdf
  3. The script for the entire chapter: measurement.R
  4. The script used in Section 1.3.8: UNpop.R

Data sets


Main text

  1. Afghanistan Survey Data (Table 3.1): afghan.csv
  2. Afghanistan Village Data (Table 3.2): afghan-village.csv
  3. Legislative Ideal Points Data (Table 3.3): congress.csv
  4. US Gini Coefficient Data (Table 3.4): USGini.csv

Exercises

  1. Reshaped Gay Marriage Study Data (Table 3.5): gayreshaped.csv
  2. Cooperative Campaign Analysis Project (CCAP) Data (Table 3.6): ccap2012.csv
  3. Political Efficacy Data (Table 3.7): vignettes.csv
  4. UN Voting Data (Table 3.8): unvoting.csv

Chapter 4: Prediction

Download all the supporting files for Chapter 4: Prediction Zip file icon


Code


  1. The markdown file for the entire chapter: prediction.Rmd
  2. The pdf file with outputs: prediction.pdf
  3. The script for the entire chapter: prediction.R

Data sets


Main text

  1. 2008 Presidential Election Data (Table 4.1): pres08.csv
  2. 2008 Presidential Polling Data (Table 4.2): polls08.csv
  3. 2008 Presidential National Polling Data (Table 4.3): pollsUS08.csv
  4. Facial Appearanace Experiment Data (Table 4.4): face.csv
  5. 2012 US Presidential Election Data (Table 4.5): pres12.csv
  6. 1996 and 2000 US Presidential Election Data for Florida Counties (Table 4.6): florida.csv
  7. Women as Policy Makers Experiment Data (Table 4.7): women.csv
  8. Revisiting the Social Pressure Experiment Data (Table 2.4): social.csv
  9. British Parliament Member Personal Wealth Data (Table 4.8): MPs.csv

Exercises

  1. 2008 Intrade Prediction Market Data (Table 4.9): intrade08.csv
  2. 2012 Intrade Prediction Market Data (Table 4.9): intrade12.csv
  3. Progresa Program Data (Table 4.11): progresa.csv
  4. Brazilian Government Transfer Data (Table 4.12): transfer.csv

Chapter 5: Discovery

Download all the supporting files for Chapter 5: Discovery Zip file icon


Code


  1. The markdown file for the entire chapter: discovery.Rmd
  2. The pdf file with outputs: discovery.pdf
  3. The script for the entire chapter: discovery.R

Data sets


Main text

  1. ‘The Federal Papers’ Data (Table 5.1): federalist/
  2. Florence Marriage Network Data (Table 5.3): florentine.csv
  3. Senator Follow / Following Data (Table 5.4): twitter-following.csv
  4. Senator Information Data (Table 5.4): twitter-senator.csv
  5. 2008 Presidential Election Results (Table 4.1): pres08.csv
  6. Walmart Store Opening Data (Table 5.5): walmart.csv

Exercises

  1. Analyzing the Preambles of Constitutions (Table 5.6): constitution.csv
  2. International Trade Network Data (Table 5.7): trade.csv
  3. County-Level US Presidential Election Data (Table 5.8): elections.csv

Chapter 6: Probability

Download all the supporting files for Chapter 6: Probability Zip file icon


Code


  1. The markdown file for the entire chapter: probability.Rmd
  2. The pdf file with outputs: probability.pdf
  3. The script for the entire chapter: probability.R

Data sets


Main text

  1. Florida Registered Voter List Sample Data (Table 6.1): FLVoters.csv
  2. US Census Bureau Surname List Data (Table 6.3): names.csv
  3. Florida Census Data at the Voting District Level (Table 6.4): FLCensusVTD.csv
  4. 2008 US Presidential Election Data (Table 4.1): pres08.csv

Exercises

  1. Intrade Betting Market Data (Table 4.9): intrade08.csv
  2. Russian and Canadian Election Data (Table 6.5): fraud.RData

Chapter 7: Uncertainty

Download all the supporting files for Chapter 7: Uncertainty Zip file icon


Code


  1. The markdown file for the entire chapter: uncertainty.Rmd
  2. The pdf file with outputs: uncertainty.pdf
  3. The script for the entire chapter: uncertainty.R

Data sets


Main text

  1. 2008 US Presidential Election Data (Table 4.1): pres08.csv
  2. 2008 US Presidential Polls Data (Table 4.2): polls08.csv
  3. Student-Teacher Achievement Ratio (STAR) Data (Table 2.6): STAR.csv
  4. Resume Experiment Data (Table 2.1): resume.csv
  5. Minimum Wage Study Data (Table 2.5): minwage.csv
  6. Women as Policy Makers Experiment (Table 4.7): women.csv
  7. British Parliament Personal Wealth Data (Table 4.8): MPs.csv

Exercises

  1. Sex Ratio and the Price of Agricultural Crops in China (Table 7.4): chinawomen.csv
  2. TESS Program Academic Research Data (Table 7.5): filedrawer.csv
  3. Published Journal Article Data (Table 7.6): published.csv
  4. Analysis of the 1932 German Election (Table 7.7): nazis.csv
Powered by WishList Member - Membership Software