MSE {forecasteR} | R 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))
[Package forecasteR version 2.0.2 Index]