For your assignment this week, I want you to answer the question

Added on - 16 Sep 2019

  • Dissertation

    type

  • 2

    pages

  • 541

    words

  • 161

    views

  • 0

    downloads

Showing pages 1 to 1 of 2 pages
For your assignment this week, I want you to answer the question "Does a year ofeducation increase wages more for women than for men?"DataUse the CPS ASEC data from ipums.org. It is fine to pick just one year (2016 is agood year).You should use the logarithm of wage income. You will need to construct ameasure of hourly wage using a combination of variables like incwage, uhrsworkly,and wkswork1.Read the descriptions of the variables.On IPUMS, before you "submit extract", change the "data format" to csv.Pay special attention to codes for "missing" or "not in universe" (NIU). Convertthese to "NA" before doing anything with those variables or you will see a bunch ofpeople with $9999999 in income. This information is usually under "codes" for eachvariable on IPUMS.Try to focus on full-time workers (this depends on both hours worked per weekand number of weeks worked per year) that are adults of working age.I put together the following variables for you. They are the same length, and you canuse them to convert the categories in EDUC to years of schooling. You will need to putthem in a data frame (as I did in the third line of code below) and merge that dataframe with your main data frame (again as I did in the fourth line of code below). Youwill need to change the name of the "cps" data frame to whatever you named yours.EDUC = c(999,0,1,2,10:14,20:22,30:32,40,50,60,70:73,80,81,90:92,100,110,111,120:125)school =c(NA,NA,NA,0,2.5,1:4,5.5,5:6,7.5,7:11,rep(12,4),13,rep(14,4),15,16,17,17,rep(18,4),20)edyears = data.frame(EDUC,school)cps2 = merge(cps,edyears,by="EDUC")
desklib-logo
You’re reading a preview
card-image

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Unlock This Document