Estimate quantiles using mixture of quantile regression and GPDs. Use triangular weighting functions to tradeoff between QR fit and GPD fits.
1 2 3 | fit_weighted_rqgpd(y, dates, b.df.lf, b.df.hf, b.b.formula, t.df.lf, t.df.hf,
t.b.formula, taus, l.taus, u.taus, thresh.l.taus, thresh.u.taus,
use.winter.shape = FALSE, pred.dates = NULL)
|
y |
response vector samples |
dates |
dates corresponding to response observations |
b.df.lf |
df for bulk low freq basis |
b.df.hf |
df for bulk high freq basis |
b.b.formula |
bulk formula involving b.lf and b.hf |
t.df.lf |
df for tail low freq basis |
t.df.hf |
df for tail high freq basis |
t.b.formula |
tail formula (simpler) involving b.lf and b.hf |
taus |
vector of intermediate (bulk) quantiles to estimate (between 0 and 1) |
l.taus |
vector of lower tail quantiles to estimate (between 0 and 1) |
u.taus |
vector of higher tail quantiles to estimate (between 0 and 1) |
thresh.l.taus |
lower threshold quantiles for defining collection of GPDs |
thresh.u.taus |
upper threshold quantiles for defining collection of GPDs |
use.winter.shape |
(logical) should a separate shape parameter be estimated for winter months? |
pred.dates |
(optional) vector of dates to make predictions on (if different from dates) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.