glm applied to a dataframe