Title: nearmrg
What step did I miss???
Dear Users
I have some trouble using the nearmrg command written by M. Blasnik. Let's say that I have two files ageinfo1 and ageinfo2, and that I want to compare income in a matched subgroup. After doing the commands below, I have a message error saying "using data not sorted"
use ageinfo2
nearmrg gender using ageinfo1, nearvar(age) genmatch(_match)
In an other set of experiment I had an other message " gender age" not unique, although I used a random process to build age, so that any combination based on age should be unique.
What step did I miss? I know this problem was pointed out, and fixed, a couple of weeks ago. But it simply does not work in my hands.
Thanks
file ageinfo1
+----------------------------+
id gender age income
----------------------------
1. 1 1 34 23
2. 2 2 40 43
3. 3 1 25 21
4. 4 1 12 56
5. 5 2 18 75
+----------------------------+
file ageinfo 2
+-----------------------------+
id gender age income
-----------------------------
1. 12 2 34 12
2. 213 2 40 32
3. 314 1 25 32
4. 415 1 12 12
5. 516 2 18 65
+-----------------------------+