Average prediction mean squared error
sp(model)
lm
SP
model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) sp(model)#> [1] 0.26444