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?!
Creating a treatment and control variable and making a Twoway Line Plot of Parallel TrendsHi all, I have run into a bit of an issue. I am attempting to make a parallel trend twoway line plo…
Collapse vs dropI am trying to collapse this data of all treatment lines to include only the first treatments for th…
Dropping observationsHello Members, I have a dataset that looks like this: Code: clear input float(time v1 v2) 1 500 …
Interactions with dummiesDear all, In the following interaction, how can I specify if female==1 (for women)? I want to look …
Using NYC shapefiles | Issue with Lat LongHi, I am trying to use NYC census shapefile from here - https://www1.nyc.gov/site/planning/d...-met…
Subscribe to:
Post Comments (Atom)
0 Response to Reclink: Type mismatch for a same type variable?!
Post a Comment