Implemented predict functions for GLM