I am working in a multi-year data set. The problem I'm encountering is that I have the same variable name but they don't always have the same response category. So in 2013, ED_LEVEL= 1 = Less than 12th grade, no diploma ED_LEVEL= 2 = High school graduate or GED completed ED_LEVEL= 3 = Associate degree (AA, AS) ED_LEVEL= 4 = Bachelor's degree(e.g., BA, BS) ED_LEVEL= 5 = Master's degree (e.g., MA, MS) ED_LEVEL= 6 = Doctorate (e.g., Phd, EdD) or professional degree (e.g., MD, DDS) ED_LEVEL= 9 = Don't Know But in 2015 the categories changed, now: ED_LEVEL= 1 = Less than 12th grade, no diploma ED_LEVEL= 2 = High school graduate or GED completed ED_LEVEL= 3 = Technical/trade/vocational school completed ED_LEVEL= 4 = Associate degree (AA, AS) ED_LEVEL= 5 = Bachelor's degree(e.g., BA, BS) ED_LEVEL= 6 = Master's degree (e.g., MA, MS) ED_LEVEL= 7 = Professional degree (e.g., JD, MD, DDS) ED_LEVEL= 8 = Doctorate (e.g., Phd, EdD) or professional degree (e.g., MD, DDS) ED_LEVEL= 9 = Don't Know And just to spice things up a bit in 2012 the variable was: EDU_M= 1 = 8th grade or less EDU_M= 2 = 9th - 12th grade, no diploma EDU_M= 3 = High school graduate or GED completed EDU_M= 4 = Some college credit but no degree EDU_M= 5 = Associate degree (AA, AS) EDU_M= 6 = Bachelor's degree(e.g., BA, BS) EDU_M= 7 = Master's degree (e.g., MA, MS) EDU_M= 8 = Doctorate (e.g., Phd, EdD) or professional degree (e.g., MD, DDS) EDU_M= 9 = Don't Know What I am hoping to do is combine them all into a common variable: EDUCATION. What I have tried thus far is (on another variable): do; if year = '2008' or '2010' or '2011' or '2012' or '2013' then do; if HC_DEVLP = 1 then DEV_DEL = 1; else if HC_DEVLP = 2 then DEV_DEL = 2; else if HC_DEVLP = 9 then DEV_DEL = 9; else DEV_DEL='.'; end; if year = '2007' or '2014' or '2015' then do; if HC_DEVLP = 1 then DEV_DEL2=1; else if HC_DEVLP = 2 then DEV_DEL2=2; else if HC_DEVLP = 9 then DEV_DEL2=9; else if No5Developmentaldelay = 0 then DEV_DEL2 = 1; else if No5Developmentaldelay = 1 then DEV_DEL2 = 2; else DEV_DEL2='.'; end; end; but that did not work so I am reaching out for some advice because I'm not having much luck figuring it out at this point. Thanks Community.
... View more