Final Stata - Paul Huettner Student #44 Econ-281 Final...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Paul Huettner Student #44 Econ-281 Final STATA Project set memory 1g use C:\Users\pmh116\Desktop\dataproblem1.dta gen edu = grade92 replace edu = 8 if grade92 <= 34 replace edu = 9 if grade92 == 35 replace edu = 10 if grade92 == 36 replace edu = 11 if grade92 == 37 replace edu = 11 if grade92 == 38 replace edu = 12 if grade92 == 39 replace edu = 13 if grade92 == 40 replace edu = 14 if grade92 == 41 replace edu = 14 if grade92 == 42 replace edu = 16 if grade92 == 43 replace edu = 18 if grade92 == 44 replace edu = 18 if grade92 == 45 replace edu = 20 if grade92 == 46 gen wage = earnhre/100 replace wage = earnwke/hourslw if wage==. drop if wage <3 gen lnwage = ln(wage) drop if lnwage ==. gen potex = age-edu-6 drop if potex <0 gen potex2 = potex^2 gen female = sex replace female =0 if female ~= 2 replace female =1 if female == 2 gen black = race replace black = 0 if black ~=2 replace black = 1 if black ==2 gen white = race replace white = 0 if white ~=1 gen married = marital
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/14/2012 for the course ECON 201 taught by Professor Witte during the Spring '08 term at Northwestern.

Page1 / 2

Final Stata - Paul Huettner Student #44 Econ-281 Final...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online