Learn R Programming

FSMUMI (version 1.0)

compute.rmse: Root Mean Square Error (RMSE)

Description

Calculate the FA2 between two univariate signals Y (imputed values) and X (true values).

Usage

compute.rmse(Y, X)

Arguments

Y

vector of imputed values

X

vector of true values

Details

This function computes the value of RMSE of two univariate signals. A lower RMSE (\(RMSE \in [0, \inf]\)) value demonstrates a better performance method for the imputation task. The length of the two vectors Y and X must be equal, on the contrary an error will be displayed. In both input vectors, eventual NA will be exluded with a warning diplayed.

Examples

Run this code
# NOT RUN {
data(dataFSMUMI)
X <- dataFSMUMI[, 1] ; Y <- dataFSMUMI[, 2]
compute.rmse(Y,X)
# }

Run the code above in your browser using DataLab