Generalized partially linear single-index models (GPLSIMs) are important tools in nonparametric regression. They extend popular generalized linear models to allow flexible nonlinear dependence on some predictors while overcoming the “curse of dimensionality.” We develop an R package gplsim that implements efficient spline estimation of GPLSIMs, proposed by (Yu and Ruppert 2002) and (Yu et al. 2017), for a response variable from a general exponential family. The package builds upon the popular mgcv package for generalized additive models (GAMs) and provides functions that allow users to fit GPLSIMs with various link functions, select smoothing tuning parameter \(\lambda\) against generalized cross-validation or alternative choices, and visualize the estimated unknown univariate function of single-index term. In this paper, we discuss the implementation of gplsim in detail, and illustrate the use case through a sine-bump simulation study with various links and a real-data application to air pollution data.
Supplementary materials are available in addition to this article. It can be downloaded at RJ-2023-024.zip
Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".
For attribution, please cite this work as
Zu & Yu, "gplsim: An R Package for Generalized Partially Linear Single-index Models", The R Journal, 2023
BibTeX citation
@article{RJ-2023-024, author = {Zu, Tianhai and Yu, Yan}, title = {gplsim: An R Package for Generalized Partially Linear Single-index Models}, journal = {The R Journal}, year = {2023}, note = {https://doi.org/10.32614/RJ-2023-024}, doi = {10.32614/RJ-2023-024}, volume = {15}, issue = {1}, issn = {2073-4859}, pages = {55-64} }