removing unused code
apply period set_condition
adjusting conditions selection
adjusting regression formula
adjusting mean_difference
making regression proportionate
test regression for no change also
refactor call to statistics
refactor statitcs method