Hello. I need to generate a variable that indicates the length of the text string that two other text variables have in common from position 1, including spaces. For example:
I do not know how to do it. Could someone help me please? Thanks
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str18 var1 str19 var2 float THIS_IS "example number 1" "example number 123" 16 "esto es una prueba" "esto es otra prueba" 8 end

Comment