Description
Compute mean squared error (MSE) between actual and predicted values.
Usage
MSE.ts(actual, prediction)
Value
Numeric scalar with the MSE.
Arguments
- actual
Numeric vector of observed values.
- prediction
Numeric vector of predicted values.
Details
MSE = mean((actual - prediction)^2).