* PROGRAM: edudate2.do * DATE: 2003-01-28 * This program generates education variables from the schooling variables in the CPS * Note that beginning in 1992, the CPS categorizes educational attainment differently * than in previous years. program define educate2 if ${year}<=91 { * Years of schooling gen edu=gradeat gradeat>=1 * Subtract one year if the highest grade attended is not completed (gradecp==2) replace edu=edu-1 if gradecp==2 & edu>=1 label variable edu "Years of Education" } end