Hi all,
I'm using rangejoin for the first time and can't figure out what I'm doing wrong.
The first dataset contains the key-variable age (and a number of other variables), like this:
Casenr age
1. 19
2. 21
3. 22
4. 24
5. 26
6. 26
7. 34
8. 35
9. 37
The second dataset contains an age-range (and some other variables), like this:
casenr age2min age2plus
1. 17 21
2. 18 22
3. 21 25
4. 22 26
5. 24 28
6. 25 29
7. 30 34
8. 33 37
9. 34 38
10. 42 46
I use the command:
rangejoin age age2min age2plus using "dataset2"
Which gives me the following error:
was expecting a numeric variable, a number, or a system missing value for the interval low: age2min
r(198);
However, all three variables age, age2min and age2plus have format %9.0g. They do have some missings, which have system missing value (.)
If I drop all cases with missings, I get the same error. What could be wrong?
I'm using rangejoin for the first time and can't figure out what I'm doing wrong.
The first dataset contains the key-variable age (and a number of other variables), like this:
Casenr age
1. 19
2. 21
3. 22
4. 24
5. 26
6. 26
7. 34
8. 35
9. 37
The second dataset contains an age-range (and some other variables), like this:
casenr age2min age2plus
1. 17 21
2. 18 22
3. 21 25
4. 22 26
5. 24 28
6. 25 29
7. 30 34
8. 33 37
9. 34 38
10. 42 46
I use the command:
rangejoin age age2min age2plus using "dataset2"
Which gives me the following error:
was expecting a numeric variable, a number, or a system missing value for the interval low: age2min
r(198);
However, all three variables age, age2min and age2plus have format %9.0g. They do have some missings, which have system missing value (.)
If I drop all cases with missings, I get the same error. What could be wrong?
Comment