Read-only mirror of https://github.com/MeteoSwiss/biascorrection — MeteoSwiss. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-11-07 16:21:40 +01:00
.github Use pkgdown and github actions 2020-05-13 22:15:25 +02:00
man roxygen update 2023-11-07 16:11:59 +01:00
R use debias instead of hidden function 2023-11-07 16:12:20 +01:00
tests catch warnings in tests 2023-11-07 16:11:46 +01:00
vignettes update repository 2023-11-07 16:21:40 +01:00
.gitignore minor updates 2023-11-07 16:16:44 +01:00
.Rbuildignore Use pkgdown and github actions 2020-05-13 22:15:25 +02:00
.travis.yml updated settings for CI with travis and codecov 2020-03-19 14:35:54 +01:00
_pkgdown.yml minor updates 2023-11-07 16:16:44 +01:00
biascorrection.Rproj minor updates 2023-11-07 16:16:44 +01:00
codecov.yml updated settings for CI with travis and codecov 2020-03-19 14:35:54 +01:00
DESCRIPTION minor updates 2023-11-07 16:16:44 +01:00
NAMESPACE Isolate elementary quantile mapping function from qqmap 2017-02-01 15:39:09 +01:00
NEWS updated settings for CI with travis and codecov 2020-03-19 14:35:54 +01:00
README.md update repository 2023-11-07 16:21:40 +01:00
README.Rmd update repository 2023-11-07 16:21:40 +01:00

biascorrection

Introduction

Collection of functions to calibrate daily ensemble forecasts. This package includes a wrapper for performing bias correction in in-sample, cross-validation, moving blocks cross-validation and forward modes and also includes a variety of calibration functions (regression-based, quantile mapping). The focus is on ease-of-use rather than performance when applied to large datasets. Consequently, specific functions will have to be implemented separately to be applicable in an operational setting.

Marginal support is provided to apply calibration functions to large datasets. Function debiasApply automates calibration with collections of forecasts and calibrating observations.

The bias correction options include:

library(biascorrection)
list_methods()
#>  METHODS          DESCRIPTION                                   
#>  ccr              Climate Conserving Recalibration              
#>  ccrlm            Climate Conserving Recalibration (as          
#>                   Regression)                                   
#>  comb             Conditional Bias With Linear Time Trend       
#>  conditional      Bias Conditional on Forecast                  
#>  initial          Bias dependent on initial condition           
#>  linmod           Linear Models for Bias Correction             
#>  monthly          Daily Calibration with Monthly Mean           
#>  moving           Moving Window Mean De-biasing                 
#>  mul              Multiplicative De-biasing                     
#>  qqmap            Quantile Mapping                              
#>  smooth           Mean De-biasing With Smoothing of Daily       
#>                   Climatology                                   
#>  smooth_mul       Multiplicative De-biasing With Smoothed       
#>                   Climatologies                                 
#>  smooth_scale     Smoothed Mean De-biasing With Variance Scaling
#>  smoothobs_mul    Multiplicative De-biasing With Smoothed       
#>                   Observation Climatology                       
#>  smoothobs_scale  Mean De-biasing With Variance Scaling         
#>  trend            Bias With Linear Time Trend                   
#>  useqmap          Quantile Mapping Using the 'qmap' Package

Getting started

First, install the package and vignettes.

devtools::install_github("MeteoSwiss/biascorrection", build_vignettes=TRUE)

Next, check out the examples provided in the vignette or the help and examples of individual functions in biascorrection.

vignette('biascorrection')