Hello family
I'm working with a large panel dataset on trade (30 variables, and over 66.23 million observations) and trying to group similar string entries using the strgroup command in Stata 17. Specifically, I want to cluster variations of company names that refer to the same entity (e.g., "Kernel Export Bio SL", "Kernel Export SL Bio", "Kernel Export SL"). Many entries refer to the same entity but are spelled differently.
I attempted the following command:
"strgroup versendername, gen(name_group) threshold(0.85)"
But I received this error:
"<66230698 invalid name
r(198);"
I’ve double-checked that versendername exists and is a string variable.
Has anyone encountered this issue before?
Any suggestions would be greatly appreciated!
I'm working with a large panel dataset on trade (30 variables, and over 66.23 million observations) and trying to group similar string entries using the strgroup command in Stata 17. Specifically, I want to cluster variations of company names that refer to the same entity (e.g., "Kernel Export Bio SL", "Kernel Export SL Bio", "Kernel Export SL"). Many entries refer to the same entity but are spelled differently.
I attempted the following command:
"strgroup versendername, gen(name_group) threshold(0.85)"
But I received this error:
"<66230698 invalid name
r(198);"
I’ve double-checked that versendername exists and is a string variable.
Has anyone encountered this issue before?
Any suggestions would be greatly appreciated!

Comment