Question: 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

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 paper, the authors analyzed households rather than individual. Why did they do this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!