R package for analysis of social defeat data