Calculates the Root MSE of prediction on test data. Only tested to work inside loocv
.
rmsep(Xtst, Ytst, fit, combi = FALSE)
Mean squares difference between predicted Y and true Y
Numeric vector or matrix.
Numeric vector or matrix.
o2m
fit (on data without Xtst
and Ytst
).
Logical. Should the symmetrized MSE be used, i.e. add both MSEs. Not yet implemented, but see rmsep_combi
This function is the building block for loocv
, as it produced the prediction error for test (left out) data.