R/measure.bias.rel.R

Defines functions measure.bias.rel

Documented in measure.bias.rel

#' @title Relative bias
#' @description Function to compute the difference between the relative bias between the predicted and observed means. 
#' The measure depends on the index mean.
#' @author J. Bedia, D. San-Mart\'in, S. Herrera
#' @template templateMeasureParams
#' @param dates dates
#' @return A float number corresponding to the bias.
#' @export

measure.bias.rel <- function(indexObs = NULL, indexPrd = NULL, obs = NULL, prd = NULL, dates) {
      (indexPrd - indexObs) / indexObs
}
SantanderMetGroup/R_VALUE documentation built on July 4, 2023, 4:27 a.m.