Description Usage Arguments Value
View source: R/eqm_bc_5foldcv.R
Performing empirical quantile distribution mapping to correct bias in the observation data, applying the 5-fold cross-validation; the "truth" quantiles are given for a reference.
1 | eqm_bc_5foldcv(data.obs, data.datetime, true.quantiles)
|
data.obs |
a numeric vector of observation data needs to be corrected. |
data.datetime |
a sequence of timestamps in |
true.quantiles |
a list of six numeric vectors of the "truth" quantiles to build the bias correction model, the corresponding cumulative probability stamps must be evenly spreaded between 0 and 1. If not satisfied, a pseudo "truth" observation numeric vector satisfying the quantiles should be provided. We suggest using quantiles with cumulative probability from 0.01 to 1 with interval length 0.01 (100 quantiles in total). We use Weibull distribution with maximum likelihood estimation to fit these quantiles (in R package fitdistrplus). |
a list of two parts: one is the output dataframe bc_output
that includes both
input and bias-corrected observation data; the other one is a large list bc.eqm_model
contains all the empirical quantile mapping models in each turn of cross-validation
during different season/period.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.