added function argument to lm_anova

can now use lm_anova for multiple purposes