I am trying to calculate the MSE on my GLM model below, but am getting error
Error in h(simpleError(msg, call)) : error in evaluating the argument \'x\' in