View source: R/model_evaluation.R
calc_summary_statistics | R Documentation |
Helps with analyzing predictions by comparing them with the true values on a number of relevant summary statistics.
calc_summary_statistics(predictions, date_effect_start = NULL, buffer = 0)
predictions |
Data.table or data.frame with the following columns
|
date_effect_start |
A date. Start date of the effect that is to be evaluated. The data from this point onwards is disregarded for calculating model performance |
buffer |
Integer. An additional buffer window before date_effect_start to account for uncertainty in the effect start point. Disregards additional buffer data points for model evaluation |
data.frame of summary statistics with columns true and prediction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.