Arguments

predicted

observed

numeric vector that contains the observed data
points (2nd parameter)

na.rm

logical vector that determines whether the missing
values should be removed or not.

Details

RMSE is expressed as

√{n^{-1} ∑ \limits_{i=1}^n{ ≤ft| P_i - O_i \right|^2}}

n

the number of observations

P

the "model estimates or predictions"

O

the "thought-to-be reliable and pairwise matched
observations"

RMSE is fully discussed in the Willmott reference, including a comparison
to mean-absolute error (MAE).

Value

mean absolute percent error (RMSE) as a numeric vector. The default
choice is that any NA values will be kept (na.rm = FALSE). This can be
changed by specifying na.rm = TRUE, such as rmse(pre, obs, na.rm = TRUE).