fsemipar: An R package for SoF semiparametric regression

Abstract

Functional data analysis has become a tool of interest in applied areas such as economics, medicine, and chemistry. Among the techniques developed in recent literature, functional semiparametric regression stands out for its balance between flexible modelling and output interpretation. Despite the large variety of research papers dealing with scalar-on-function (SoF) semiparametric models, there is a notable gap in software tools for their implementation. This article introduces the R package fsemipar, tailored for these models. fsemipar not only estimates functional single-index models using kernel smoothing techniques but also estimates and selects relevant scalar variables in semi-functional models with multivariate linear components. A standout feature is its ability to identify impact points of a curve on the response, even in models with multiple functional covariates, and to integrate both continuous and pointwise effects of functional predictors within a single model. In addition, it allows the use of location-adaptive estimators based on the k-nearest-neighbours approach for all the semiparametric models included. Its flexible interface empowers users to customise a wide range of input parameters and includes the standard S3 methods for prediction, statistical analysis, and estimate visualization (predict, summary, print, and plot), enhancing clear result interpretation. Throughout the article, we illustrate the functionalities and the practicality of fsemipar using two chemometric datasets.

Publication
arXiv preprint arXiv:2405.14048
Silvia Novo
Silvia Novo
Assistant Professor