Code:
gen University=. replace University==Harvard University if strmatch(Degree,"*Harvard*")
r(111);
Code:
gen University=. replace University==testHarvard University if strmatch(Degree,"*Harvard*")
r(111);
I manually want to replace the . of the variable University by specific university names because now I have a variable called Degree containing string values like Harvardgraduated, Harvard school, Harvard college instead of 1 specific university name.
Is there a solution for this? I couldn't find it
Comment