R/caclulate_error.R
rmse.Rd
Function that calculates Root Mean Square Error (RMSE)
rmse(actual, predicted)
observed values
predicted values
Details go here
actual <- c(4, 6, 9, 10, 4, 6, 4, 7, 8, 7) predicted <- c(5, 6, 8, 10, 4, 8, 4, 9, 8, 9) rmse(actual, predicted) #> [1] 1.183216