* output results to log file log using educ_earn.log, replace * the data set is big so increase memory set memory 2m * read in data * this is the data set from the intro to * stata handout use cps87 * construct ln weekly earnings gen ln_weekly_earn=ln(weekly_earn) * get descriptive information sum weekly_earn ln_weekly_earn years_educ * run simple regression reg ln_weekly_earn years_educ * generate new variable for age squared gen age2=age*age * run regression controlling for * educ and quadratic in age reg ln_weekly_earn years_educ age age2 log close