Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Gerber, Green and Larimer randomly assigned households to receive a mailing encouraging them to turn out to vote before the Michigan 2006 primary election (Gerber,
Gerber, Green and Larimer randomly assigned households to receive a mailing encouraging them to turn out to vote before the Michigan 2006 primary election (Gerber, Green and Larimer (APSR, 2008)). We will be using the individual data obtained from the experiment. Each row in the dataset represent an individual record, where p2000 represents whether the individual had voted in August 2000, g2000 represents whether the individual had voted in November 2000 (same for p2002,g2002,p2004). Each individual belongs to a household specified by hh id. Part a. (4 points) Data preparation : In order to analyze the GOTV data we will need to reproduce the household-level dataset of the original paper (a) Recode the variable "sex" by changing the character to float (i.e. "female" 1., "male" 0). (b) Recode the variable "yob" into a new variable called "age" by subtracting yob from the year the experiment took place, 2006. (c) Group the data into households, i.e., create a new dataframe where each row is a house- hold with a unique hh id, and each column is the the mean value of each of the other individual-level variables in that household. (Hint: you may consider using dplyr.) (d) In the
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started