Description Usage Arguments Value
View source: R/eqm_bias_correction.R
Performing empirical quantile distribution mapping to correct bias in the observation data, the "truth" quantiles are given as reference data.
1 2 3 4 5 6 7 | eqm_bias_correction(
train.obs,
train.datetime,
test.obs,
test.datetime,
true.quantiles
)
|
train.obs |
a numeric vector of training observed data to build the bias correction model. |
train.datetime |
a sequence of timestamps in |
test.obs |
a numeric vector of test observed data to be calibrated, could be the same as |
test.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 numeric vector that contains the corrected test_after_bc
for the test data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.