A function to calculate various error loss functions. Options include: MSE, RMSE, MAE, and MAPE. The default is MSE loss.

forecast_accuracy(Data)

Arguments

Data

data.frame: data frame of forecasts, model names, and dates

Value

data.frame of numeric error results