Description Usage Arguments Value
View source: R/forecast_metrics.R
A function to calculate various error loss functions. Options include: MSE, RMSE, MAE, and MAPE. The default is MSE loss.
1 | loss_function(forecast, observed, metric = "MSE")
|
forecast |
numeric: vector of forecasted values |
observed |
numeric: vector of observed values |
metric |
string: loss function |
numeric test result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.