Description Usage Arguments Value
This function calculates mean squared error (MSE) and the success ratio of a given set of forecasts.
1 |
pred |
vector of forecasts. |
true |
vector of true values. |
h |
forecasting horizon used in making the forecasts. Default is |
This function returns the same outputs as does the maeforecast
function. More specifically, it returns a list containing the following objects:
Forecasts |
data matrix, containing the point forecasts, realized values, forecast errors, signs of the forecasts and realized values, and success in predicting the signs. |
MSE |
numeric, mean squred error of the point forecasts. |
SRatio |
numeric, success ratio of the point forecasts. Success is claimed when the point forecasts and realized values have the same sign. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.