Pain had a stronger influence on the number of behavioral and psychiatric symptoms of dementia among those with severe cognitive impairment ( F1 ,69 = 11.75 , P < 0.001 ) compared with those with low to moderate cognitive impairment ( F1 ,199 = 4.543 , P = 0.034 . )