fit_lm function

fit linear model based on input data.frame