There is an R library, "Metrics". Its rmse() function can be used to calculate the RMSE.
Here is an example:
# Install and load the Metrics packageif (!require("Metrics")){ install.packages("Metrics") }library(Metrics)preds <- c(0.02, 0.04, 0.06, 0.65, 0.1)trus <- c(0.012, 0.104, 0.206, 0.165, 0.21)rmse(trus, preds)
# Install and load the Metrics package
if (!require("Metrics")){
install.packages("Metrics")
}
library(Metrics)
preds <- c(0.02, 0.04, 0.06, 0.65, 0.1)
trus <- c(0.012, 0.104, 0.206, 0.165, 0.21)
rmse(trus, preds)