powered by
Calculates weighted mean-squared error of prediction. Equals mean unit normal deviance. The smaller, the better.
mse(actual, predicted, w = NULL, ...)
Observed values.
Predicted values.
Optional case weights.
Further arguments passed to weighted_mean.
weighted_mean
A numeric vector of length one.
rmse, deviance_normal.
rmse, deviance_normal
# NOT RUN { mse(1:10, c(1:9, 12)) mse(1:10, c(1:9, 12), w = rep(1, 10)) mse(1:10, c(1:9, 12), w = 1:10) # }
Run the code above in your browser using DataLab