[Paper Review] lspartition: Partitioning-Based Least Squares Regression
This paper introduces the R package lspartition, which enables data-driven, optimal partitioning-based least squares regression with robust inference. It provides IMSE-optimal knot selection, bias-corrected inference, and uniform confidence bands for regression functions and their derivatives using splines, wavelets, and piecewise polynomials, with extensions for two-sample comparisons in treatment-control settings.
Nonparametric partitioning-based least squares regression is an important tool in empirical work. Common examples include regressions based on splines, wavelets, and piecewise polynomials. This article discusses the main methodological and numerical features of the R software package lspartition, which implements modern estimation and inference results for partitioning-based least squares (series) regression estimation. This article discusses the main methodological and numerical features of the R software package lspartition, which implements results for partitioning-based least squares (series) regression estimation and inference from Cattaneo and Farrell (2013) and Cattaneo, Farrell, and Feng (2019). These results cover the multivariate regression function as well as its derivatives. First, the package provides data-driven methods to choose the number of partition knots optimally, according to integrated mean squared error, yielding optimal point estimation. Second, robust bias correction is implemented to combine this point estimator with valid inference. Third, the package provides estimates and inference for the unknown function both pointwise and uniformly in the conditioning variables. In particular, valid confidence bands are provided. Finally, an extension to two-sample analysis is developed, which can be used in treatment-control comparisons and related problems
Motivation & Objective
- To address the challenge of tuning parameter selection in nonparametric regression by providing data-driven, IMSE-optimal knot choices for partitioning-based estimators.
- To enable valid statistical inference—both pointwise and uniform—on regression functions and their derivatives, even when using point-estimation-optimal tuning parameters.
- To unify and implement robust bias correction methods that maintain pre-asymptotic accuracy and handle heteroskedasticity without assuming known form.
- To extend the framework to two-sample comparisons, allowing nonparametric, uniform inference on conditional treatment effects across covariate supports.
- To offer a user-friendly, fully integrated R package that automates complex nonparametric estimation and inference tasks without requiring manual coding.
Proposed method
- Implements data-driven knot selection using integrated mean squared error (IMSE)-optimal methods, including the 'imse-dpi' approach, for splines, compactly supported wavelets, and piecewise polynomials.
- Applies robust bias correction based on novel bias expansions from Cattaneo, Farrell, and Feng (2019), keeping bias and variance estimates in pre-asymptotic form for improved finite-sample performance.
- Constructs confidence bands via strong approximation results instead of asymptotic extreme value theory, improving coverage in moderate samples.
- Uses plug-in and bootstrap methods to approximate the distribution of t-statistic processes for uniform inference, enabling simultaneous confidence bands over the entire support of covariates.
- Integrates a linear combination function (lsplincom) to estimate and test differences in regression functions between two groups, with full inference capabilities.
- Supports multiple basis functions—B-splines, Haar wavelets, and piecewise polynomials—under a unified framework with consistent tuning and inference procedures.
Experimental results
Research questions
- RQ1How can optimal knot selection be achieved in partitioning-based least squares regression to minimize integrated mean squared error?
- RQ2Can robust bias correction methods be developed that yield valid inference when using IMSE-optimal tuning parameters?
- RQ3How can uniform confidence bands be constructed for nonparametric regression functions and their derivatives without relying on asymptotic extreme value theory?
- RQ4To what extent can the framework be extended to two-sample comparisons, such as treatment-control differences in conditional expectations?
- RQ5How can a single, user-friendly R package unify and automate complex nonparametric estimation and inference tasks across different basis functions?
Key findings
- The lspartition package successfully implements data-driven, IMSE-optimal knot selection for splines, wavelets, and piecewise polynomials, improving point estimation accuracy.
- Robust bias correction methods significantly enhance inference quality, yielding valid confidence intervals and bands even under unknown heteroskedasticity and finite sample sizes.
- Uniform confidence bands constructed via strong approximation methods outperform asymptotic extreme value theory in moderate samples, ensuring accurate coverage across the entire covariate range.
- In the bike rental application, the difference in rentals between working days and other days is significantly positive at low temperatures (e.g., below 7°C), with the entire confidence band above zero in that range.
- The extension to two-sample comparisons via lsplincom allows for nonparametric, uniform inference on treatment effects, revealing that the working-day premium diminishes as temperature increases beyond 7°C.
- The package enables researchers to combine optimal point estimation with faithful, robust inference—using the same partitioning choices—without compromising coverage or accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.