gdam is an R package associated with the
article “Fast robust additive models using gamma divergence” Hui, Ding and Sugusawa, and is
available at Statistics and
Computing. The package offers a computationally efficient method, at
least at the time of development, for robust additive modeling based on
the gamma divergence. The method assumes an identity link and normally
distributed errors, and applies the gamma divergence to the resulting
restricted maximum likelihood function so as to obtain a loss function
that is less sensitive to outlying responses. Because gdam
uses a model fitted via the mgcv package as
the starting point for optimization, and leverages many of its existing
techniques for estimation and inference, users can take advantage of
many of the smoothing options available in the mgcv package
for constructing additive models.
Currently, gdam is available and can be installed from
Github with the help of pak package using:
pak::pkg_install("fhui28/gdam")
A CRAN package is currently in the works, and
(hopefully!) will be available in the near future.
Users are recommended to either:
Check out the examples in the help files for the
gdam functions in the package.
Examine the runsims.R scripts inside the folders
manuscript/simulations/setting1 and
manuscript/simulations/setting2 and
manuscript/simulations/setting3, which are template
R scripts that can be adapted to run simulation settings I
to III, respectively, in the associated manuscript. Please note that,
given they are designed to reproduce simulation studies, then the
R scripts also are not necessarily designed to be as
user-friendly, and also implement a number of other robust and
non-robust additive modeling approaches. Users are recommended to
carefully read through the scripts, and the corresponding setting in the
associated manuscript, before running them.
runsims.R scripts inside the
folders manuscript/simulations/setting1a and
manuscript/simulations/setting2a and
manuscript/simulations/setting3a, which are template
R scripts that can be adapted to run supplementary
simulation settings Ia to IIIa, respectively, in the associated
manuscript, involving heavy tailed distributions.If you find something that looks like a bug/issue, please use Github issues and post it up there. As much as possible, please include in the issue:
Alternatively, please contact the corresponding author at fhui28@gmail.com