Learn R Programming

qgam (version 2.0.0)

Smooth Additive Quantile Regression Models

Description

Smooth additive quantile regression models, fitted using the methods of Fasiolo et al. (2020) . See Fasiolo at al. (2021) for an introduction to the package. Differently from 'quantreg', the smoothing parameters are estimated automatically by marginal loss minimization, while the regression coefficients are estimated using either PIRLS or Newton algorithm. The learning rate is determined so that the Bayesian credible intervals of the estimated effects have approximately the correct coverage. The main function is qgam() which is similar to gam() in 'mgcv', but fits non-parametric quantile regression models.

Copy Link

Version

Install

install.packages('qgam')

Monthly Downloads

22,349

Version

2.0.0

License

GPL (>= 2)

Maintainer

Matteo Fasiolo

Last Published

April 10th, 2025

Functions in qgam (2.0.0)

tuneLearn

Tuning the learning rate for Gibbs posterior
qgam

Fit a smooth additive quantile regression model
pinLoss

Pinball loss function
log1pexp

Calculating log(1+exp(x)) accurately
qdo

Manipulating the output of mqgam
sigmoid

Sigmoid function and its derivatives
tuneLearnFast

Fast learning rate calibration for the Gibbs posterior
check.learnFast

Visual checks for the output of tuneLearnFast()
cqcheck

Visually checking a fitted quantile model
check

Generic checking function
elflss

Extended log-F model with variable scale
AUDem

Australian electricity demand data
check.learn

Visual checks for the output of tuneLearn()
cqcheckI

Interactive visual checks for additive quantile fits
UKload

UK electricity load data
elf

Extended log-F model with fixed scale
check.qgam

Some diagnostics for a fitted qgam model
mqgam

Fit multiple smooth additive quantile regression models