Analysis of behavioral effects of drugs