Dear All, I found this question here (in Chinese). The data set is
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str20(var1 var2 newvar)
"中国人民大学" "中国农业大学" "中国大学"
"北京大学"       "清华大学"       "大学"      
"北京科技大学" "北京大学"       "北京大学"
"北京师范大学" "上海师范大学" "师范大学"
end
Given "var1" and "var2", the desired result is "newvar". Basically, "newvar" is the words appearing in both "var1" and "var2". Thanks.