Learn R Programming

⚠️There's a newer version (2.0.0) of this package.Take me there.

qgam (version 1.3.0)

Smooth Additive Quantile Regression Models

Description

Smooth additive quantile regression models, fitted using the methods of Fasiolo et al. (2017) . 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

19,572

Version

1.3.0

License

GPL (>= 2)

Maintainer

Matteo Fasiolo

Last Published

June 7th, 2019

Functions in qgam (1.3.0)

mqgam

Fit multiple smooth additive quantile regression models
qdo

Manipulating the output of mqgam
qgam

Fit a smooth additive quantile regression model
sigmoid

Sigmoid function and its derivatives
log1pexp

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

Pinball loss function
tuneLearn

Tuning the learning rate for Gibbs posterior
tuneLearnFast

Fast learning rate calibration for the Gibbs posterior
check.learnFast

Visual checks for the output of tuneLearnFast()
check.learn

Visual checks for the output of tuneLearn()
elflss

Extended log-F model with variable scale
UKload

UK electricity load data
check.qgam

Some diagnostics for a fitted qgam model
check

Generic checking function
elf

Extended log-F model with fixed scale
cqcheckI

Interactive visual checks for additive quantile fits
cqcheck

Visually checking a fitted quantile model