My problem is as follows:
I have a dataset with 3 types of variables (say, A, B and C) for every subject. For each variable specifically, I can pool patients into having, say, high, mid and low values of the variable.
Now I want to pool subjects into classes of either having low A, B or C, or mid, or high levels (e.g. combining patients into a single low/mid/high group for all 3 variables simultaneously).
This, however, does not work properly, when I use the following code:
IF ((A <= 10) OR (B <= 15) OR (C <= 20)) pool = 1. /* low levels
IF ((A > 10 AND A <= 100) OR (B > 15 AND B <= 150) OR (C > 20 AND C <= 200)) pool = 2. /* mid levels
IF ((A > 100) OR (B > 150) OR (C > 200)) pool = 3. /* high levels
VARIABLE LABELS pool "pooled subjects (A/B/C)".
EXECUTE.
When I now run a frequency table, subjects with either low levels of A, B or C are not combined into one group. It seems the case that only patients with, specifically, low levels of all three variables are pooled. There seems to be some selection of subjects into other groups e.g. the result is one very large group of subjects (for pool = 2) and 2 very small subject groups.
What I expected (and what I want) is to have all patients into each respective group who have the aforementioned characteristics (either low levels of variable A or B or C).
Does anybody know how to solve this problem, or can see what I am doing wrong?
Thanks in advance,
A.