Stata Technical Bulletin
order |
x |
У |
_merge | |
1. |
1 |
1.605509 |
-1.849471 |
3 |
2. |
2 |
-1.363875 |
.4429037 |
3 |
3. |
3 |
1.255479 |
2.122414 |
3 |
4. |
4 |
.6902485 |
.3309246 |
3 |
5. |
5 |
.7910749 |
-.6871347 |
3 |
6. |
6 |
-1.067126 |
1.272875 |
3 |
7. |
7 |
1.471047 |
-.4236486 |
3 |
8. |
8 |
-1.971935 |
-1.741924 |
3 |
9. |
9 |
1.805707 |
-.4869484 |
3 |
10. |
10 |
-.5496167 |
.7764114 |
3 |
mergedct can also merge the same data stored in a raw, rather than a dictionary, file:
. use dta, clear
. type inrawl.raw
10 .7764114
1 -1.849471
2 .4429037
3 2.122414
4 .3309246
5 -.6871347
6 1.272875
7 -.4236486
8 -1.741924
9 -.4869484
. mergedct order using Inrawl, vlist(order y)
. list
order |
x |
У |
_merge | |
1. |
1 |
1.605509 |
-1.849471 |
3 |
2. |
2 |
-1.363875 |
.4429037 |
3 |
3. |
3 |
1.255479 |
2.122414 |
3 |
4. |
4 |
.6902485 |
.3309246 |
3 |
5. |
5 |
.7910749 |
-.6871347 |
3 |
6. |
6 |
-1.067126 |
1.272875 |
3 |
7. |
7 |
1.471047 |
-.4236486 |
3 |
8. |
8 |
-1.971935 |
-1.741924 |
3 |
9. |
9 |
1.805707 |
-.4869484 |
3 |
10. |
10 |
-.5496167 |
.7764114 |
3 |
mergedct can handle match merging as well:
. use dta, clear
. type indict2.dct
dictionary {
int z
}
101
102
103
104
105
106
107
108
109
110
. mergedct using indict2
. list
order |
x |
z |
_merge | |
1. |
1 |
1.605509 |
101 |
3 |
2. |
2 |
-1.363875 |
102 |
3 |
3. |
3 |
1.255479 |
103 |
3 |
4. |
4 |
.6902485 |
104 |
3 |
5. |
5 |
.7910749 |
105 |
3 |
6. |
6 |
-1.067126 |
106 |
3 |
7. |
7 |
1.471047 |
107 |
3 |
8. |
8 |
-1.971935 |
108 |
3 |
9. |
9 |
1.805707 |
109 |
3 |
10. |
10 |
-.5496167 |
110 |
3 |
More intriguing information
1. The name is absent2. The Advantage of Cooperatives under Asymmetric Cost Information
3. Publication of Foreign Exchange Statistics by the Central Bank of Chile
4. DISCUSSION: ASSESSING STRUCTURAL CHANGE IN THE DEMAND FOR FOOD COMMODITIES
5. The name is absent
6. Constructing the Phylomemetic Tree Case of Study: Indonesian Tradition-Inspired Buildings
7. La mobilité de la main-d'œuvre en Europe : le rôle des caractéristiques individuelles et de l'hétérogénéité entre pays
8. The Dynamic Cost of the Draft
9. Who runs the IFIs?
10. The Nobel Memorial Prize for Robert F. Engle