* PROGRAM: edudate.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. This program attempts to make variables consistent across * years program define educate if ${year}<=91 { * Years of schooling gen edu=gradeat * 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