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!
Related Posts with Reclink: Type mismatch for a same type variable?!
Rearrange panel data in STATADear all, I have several datasets I would like to merge, however, they are set up differently. What…
Configurate table with asdocHi all, I am using asdoc from SSC in Stata 13 and I am trying to configurate a little detail in a c…
Having Problem with the "menbreg" commandHello everyone, My name is David. I am new here. I need your help to solve the command issues that …
Change values within groups based on conditionsDear All, I have a dataset with group ID, individual ID, age, and sex of the individuals, as well a…
Group-wise value assignmentHello Statalist, I hope everyone is fine. In my event study, I have event variable (EV) contain 110…
Subscribe to:
Post Comments (Atom)
0 Response to Reclink: Type mismatch for a same type variable?!
Post a Comment