View source: R/variance_functions.R
rmsd | R Documentation |
rmsd
is a function that allows the calculation of the
root mean square deviation (RMSD) for a vector of numbers. This
is also referred to as the 'root mean squared error' in the
literature.
rmsd(x, expected)
x |
numeric vector. |
expected |
expectation, given the model, for each value of x. |
Based on the assumed underlying model, the estimated RMSD given the
observed data in x
.
Other Model Error Functions:
mae()
# Examples # Generated Data set.seed(1234) x <- rnorm(100) mean(x) rmsd(x, mean(x)) # Observed Data (Red Porgy data set) data(RedPorgy) x <- na.exclude(RedPorgy[, 1]) rmsd(x = x, expected = mean(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.