Hey guys!
I am looking at the following dataset:

What I essentially want is to check whether the owner of the company, classified as "GUO 50 or DUO 50", shares the last name with one of the directors. So see if shareholder_name of shareholder_type "GUO 50" or "DUO 50" is equal to ANY directors_name.
So far I have managed to isolate the last names and put these next to each other, but if I now just check whether these are the same or not it gets difficult when the names are not aligned perfectly. This is the code I used for that:
Unfortunately I do not know where to go from here. Any ideas?
I am looking at the following dataset:
What I essentially want is to check whether the owner of the company, classified as "GUO 50 or DUO 50", shares the last name with one of the directors. So see if shareholder_name of shareholder_type "GUO 50" or "DUO 50" is equal to ANY directors_name.
So far I have managed to isolate the last names and put these next to each other, but if I now just check whether these are the same or not it gets difficult when the names are not aligned perfectly. This is the code I used for that:
Code:
gen director_name = word(directors_name, -1) gen shareholder_name1 = word(shareholder_name, -2)
Comment