R functions for statistical analysis of toxicology data