Hi,
I have the following problem. I am trying to see when two country codes match in my dataset, the problem is that one code is composed of two letters (e.g. GB for Great Britain) and the other one is composed of 3 letters (GBR).
I have tried in two ways but both do not seem to work.
First of all I used the reclink function after splitting the dataset in two parts, but I get no results:
reclink subsidiary_country using "/Users/Davide/Desktop/Tesi/Stata Results/Officer_Nodiv_C.dta", id
> master(idOfficer) idusing(idCountry) gen(matchscore) minscore(.66)
0 perfect matches found
Added: idCountry= identifier from /Users/Davide/Desktop/Tesi/Stata Results/Officer_Nodiv_C.dta matc
> hscore = matching score
Observations: Master N = 900 /Users/Davide/Desktop/Tesi/Stata Results/Officer_Nodiv_C.dta N= 900
Unique Master Cases: matched = 0 (exact = 0), unmatched = 900
I then proceeded to try to use the strgroup function, but it did not work on my machine (Mac).
Thanks in advance to anyone who can help me with this.
Array
Related Posts with Matching two different strings
Problem in labels with splitvallabels Hi all, I am having problems in labelling graph with splitvallabels and catplot, I suspect that the…
Wald exogeneity test with -biprobit-Dear Statalisters Is there an in-built command/option with -biprobit- which shows the result for Wal…
Export first stage results using esttab with ivprobit and birprobitIs there a way to export first-stage results from -ivprobit- and -biprobit- using -esttab-? I know o…
Factor variable and interaction in syntax commandHi, I am trying to add interaction terms into a simple new command. Something simple like this: C…
Coding participants with metabolic syndromeHi there, I would like to categorize participants in a dataset that I am using by whether or not th…
Subscribe to:
Post Comments (Atom)
0 Response to Matching two different strings
Post a Comment