Implement the f_test for the vectorized glm