Incorporate vectorized glm into pade