glm_helpers function

Helper functions to set-up for GLM analyses