Utility function support for madlib.lm and glm