I want to calculate MPSE, mean square prediction error, to compare the performance of several regression models that I developed with training data on new testing data.
Is the mean square prediction error simply calculated as the mean of (Predicted Values - Observed Values)^2? The observed values here are the response variable from the testing dataset.
Also, can the predicted values be obtained from the R code below?
predict(lm.fit, newdata=testing, interval="prediction")