Behavioral analysis of drug dependence