rmsd: Root Mean Square Deviation

View source: R/variance_functions.R

rmsdR Documentation

Root Mean Square Deviation

Description

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.

Usage

rmsd(x, expected)

Arguments

x

numeric vector.

expected

expectation, given the model, for each value of x.

Value

Based on the assumed underlying model, the estimated RMSD given the observed data in x.

See Also

Other Model Error Functions: mae()

Examples

# 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))

ballengerj/FishyR documentation built on June 17, 2022, 10:33 p.m.