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?!
xtptqtest error: ue: At least one panel is too shortDear Community, In order to test for auto correlation in the error term of my dynamic panel regress…
Jackknife for xtpcseHi, I am trying to conduct a Jackknife estimation. The following command is able to be executed, e…
Brant test assumptions Hello community, I wanted to ask about the assumption of proportional odds and the Brant test. i ha…
Error Correction Model (ECM) for panel dataDear all, I want to use an ECM model to estimate the short-term elasticity. I have a panel data and…
Differences between value-weighted portfolio regression and portfolio regression with aweight based on MCAPDear Statalists, I have done a quintile portfolio analysis and there is a declining pattern of equa…
Subscribe to:
Post Comments (Atom)
0 Response to Reclink: Type mismatch for a same type variable?!
Post a Comment