calc_summary_statistics: Calculates summary statistics for predictions and true values

View source: R/model_evaluation.R

calc_summary_statisticsR Documentation

Calculates summary statistics for predictions and true values

Description

Helps with analyzing predictions by comparing them with the true values on a number of relevant summary statistics.

Usage

calc_summary_statistics(predictions, date_effect_start = NULL, buffer = 0)

Arguments

predictions

Data.table or data.frame with the following columns

date

Date of the observation. Needs to be comparable to date_effect_start element.

value

True observed value of the station

prediction

Predicted model output for the same time and station as value

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

Value

data.frame of summary statistics with columns true and prediction


ubair documentation built on April 12, 2025, 2:12 a.m.