Hi, I'm new to this community. Nice to meet you all.
I'm trying to run a reclink to match fuzzy datasets. I first ran a code as follows:
reclink companyname using usable_upc_company_jun21_v2, gen(myscore) idm(idcapiq) idu(upc)
Then, I had an error saying that: key variable companyname is strL in using data.
The key variables -- the variables on which observations are matched -- can be str#, but they cannot be strLs.
So, I changed it to str# at the using data by following:
gen len = length(companyname)
summ len
recast str720 companyname, force
Finally, I ran reclink again:
reclink companyname using usable_upc_company_jun21_v2, gen(myscore) idm(idcapiq) idu(upc)
After 10+minutes (or so), I get a type mismatch error.
Going through 26607 observation to assess fuzzy matches, each .=5% complete
type mismatch
I'm confused because companyname in both masters and using dataset are str#. I'd appreciate any of your help!
0 Response to Reclink: Type mismatch for a same type variable?!
Post a Comment