RMSE | R Documentation |
Calculates the root mean squared error from two vectors of observed and expected data. Assumes the two vectors are of the same length and that the pairs are the same order.
RMSE(m, o)
m |
A vector of expected values |
o |
A vector sof observed values expected to be the same length as m |
the root mean square error calculated from the two input vectors
expected <- c(0.4, 0.5, 0.2)
observed <- c(0.38, 0.47, 0.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.