MSE: Mean Square Error

View source: R/ts_utils.R

MSER Documentation

Mean Square Error

Description

Mean Square Error

Usage

MSE(Pred, Real)

Arguments

Pred

a ts object (prediction).

Real

a ts object (real).

Value

numeric

Author(s)

Diego Jimenez <diego.jimenez@promidat.com>

Examples

model <- arima(window(AirPassengers, end = c(1959, 12)))
pred  <- predict(model, 12)
MSE(pred$pred, window(AirPassengers, start = 1960))


forecasteR documentation built on July 9, 2023, 6:37 p.m.

Related to MSE in forecasteR...