I want to create a new variable which includes two types of degrees: bachelor and master.
Also, each type of degree has three different schools: hesge, hesso, other hes
My goal is to create a variable that includes bachelor and master degrees.
Then I would like to categorise each bachelor and master in the same school.
My code was as follows, but it doesn't seem to work the way I want. I began with anymatch, but maybe not suited for that:
Then, I want to basically put in the same variable the value "2" for diplomas obtained at hes-so, regardless of whether these are masters or bachelors.
Finally, the value "3" for diplomas obtained at other hes, regardless of whether these are masters or bachelors.
Michael
Also, each type of degree has three different schools: hesge, hesso, other hes
My goal is to create a variable that includes bachelor and master degrees.
Then I would like to categorise each bachelor and master in the same school.
My code was as follows, but it doesn't seem to work the way I want. I began with anymatch, but maybe not suited for that:
Code:
egen byte diplome_hes = anymatch(bachelor_hes master_hes), values(2 3 4) //HES-GE, HES-SO & Other HES diplomas
Finally, the value "3" for diplomas obtained at other hes, regardless of whether these are masters or bachelors.
Michael

Comment