View source: R/forecasting_practical.R
calc_prediction_accuracy | R Documentation |
calc_prediction_accuracy
calculates the proportion of prediction points
which are within a given percentage threshold of the observed incidence
calc_prediction_accuracy(prediction_df, tolerance = 0.25)
prediction_df |
prediction data frame returned by
|
tolerance |
numeric vector of length 1: parameter specifying range within which the predicted incidence should fall. For example, if tolerance = 0.25, a predicted point is deemed to be accurate if the predicted incidence is between 75% and 125% of the observed incidence. |
numeric vector of length 1: the proportion of prediction points which are within a given percentage threshold of the observed incidence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.