my data set has the vars listed below (along with a unique student ID). The values can = . , 1, 2, 3 , 4 or 5. For each observation I only want to keep the scores that are ge 3. Next, I want to create a variable named MET_AP, which will be a string of the names of the exams with a value ge 3 separated by a dash (if more than one occurrence).
Data I Want:
ID MET_AP
1 APbio2015 - APchem2015
2 APcalcBC2015 - APlit2015 - APphys12015
3 APworldhist2015
List of variables with values = . , 1, 2, 3, 4, 5
APbio2015
APcalcAB2015
APcalcABsub2015
APcalcBC2015
APchem2015
APengl2015
APlit2015
APenv_scr2015
APphysB2015
APphys_elect2015
APphys_mech2015
APphys12015
APphys22015
APstats2015
APworldhist2015
APmacro2015
APmicro2015
APeurohist2015
APgovt2015
APgovt_US2015
APgeogr2015
APint_engl2015
APhist2015
... View more