Initial import from original BioInfo stats modules. Templated for work on models and dataframes.