A case-control study within diagnostic subgroups