Hey good people,
I have two datasets. A has 2000 data points, while B has 10000 data points.
A dataset is uniquely identified with three vars (region, commune, and village), and B dataset is uniquely identified with four vars (region, commune, village, and polling station names). B cannot be uniquely identified with the three vars that A has.
Now, I'd like to create a concordance list: region/commune/village in A, and region/commune/village in B.
I am thinking about creating unique ids for A dataset first, and then apply (merge) those ids to B.
For example,
In A:
Region A, commune A, village A, unique id: 1
Region A, commune A, village B, unique id: 2
In B:
Region A, commune A, village A, polling station A, matching id: 1
Region A, commune A, village A, polling station B, matching id: 1
Region A, commune A, village B, polling station A, matching id: 2
Region A, commune A, village B, polling station B, matching id: 2
Do you guys know how to create a concordance list like that and how do you use A's unique ids to code B?
Anyone?
Thanks!
I have two datasets. A has 2000 data points, while B has 10000 data points.
A dataset is uniquely identified with three vars (region, commune, and village), and B dataset is uniquely identified with four vars (region, commune, village, and polling station names). B cannot be uniquely identified with the three vars that A has.
Now, I'd like to create a concordance list: region/commune/village in A, and region/commune/village in B.
I am thinking about creating unique ids for A dataset first, and then apply (merge) those ids to B.
For example,
In A:
Region A, commune A, village A, unique id: 1
Region A, commune A, village B, unique id: 2
In B:
Region A, commune A, village A, polling station A, matching id: 1
Region A, commune A, village A, polling station B, matching id: 1
Region A, commune A, village B, polling station A, matching id: 2
Region A, commune A, village B, polling station B, matching id: 2
Do you guys know how to create a concordance list like that and how do you use A's unique ids to code B?
Anyone?
Thanks!
Comment