Hello all,
I need some help with using the matchit function. I have one dataset and need to rename the Name variable observations so they are the same as others which are written similarly but differently.
I have included the example data below.
There are slightly varying names for the observations but the have common ID codes. I would like to use matchit to change the names to one uniform name i.e. All those with ID "7501" and contain "Alpha" in the Name variable to become "Alpha Team Inc", those with ID "6498" and contain "Beta" to become "Beta Team Inc" etc, for all my observations (~3,000 observations). Any help is much appreciated!
I need some help with using the matchit function. I have one dataset and need to rename the Name variable observations so they are the same as others which are written similarly but differently.
I have included the example data below.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str16 Name str4 ID "Alpha" "7501" "Alpha Team" "7501" "Alpha Team Inc" "7501" "Alpha Alpha Team" "7501" "Beta" "6498" "Beta Team" "6498" "Beta Team Inc" "6498" "Beta Beta Team" "6498" "Theta" "6320" "Theta Team" "6320" "Theta Team Inc" "6320" "Theta Theta Team" "6320" end
Comment