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?!
Generating new variables using an if functionI am trying to sort income based on marital Status and then generate new adjusted income based on ta…
xtlsdvc and xtbcfeHello, I am trying to fit a dynamic model determinants of corporate cash holdings for ~1700 firms a…
Robust or Clustered Standard ErrorsDear all, I am currently examining the impact of annual average sunset time on sleep duration of ch…
Free text processing of medical notes I am attempting to search pathology reports, which are in string format, to identify only those whi…
Adjusting the DSS Stata 'Prediction of normal returns formula'Dear Statalists, in order to be able to calculate non-parametric significance tests when doing an e…
Subscribe to:
Post Comments (Atom)
0 Response to Reclink: Type mismatch for a same type variable?!
Post a Comment