Variations in pain complaint threshold in psychiatric and neurological patients with pain