Abstract
Estimation and inference methods for the continuous threshold expectile regression. It can fit the continuous threshold expectile regression and test the existence of change point, for the paper, "Feipeng Zhang and Qunhua Li (2016). A continuous threshold expectile regression, submitted."
Introduction
In many scientific and economic contexts, the relationship between a predictor and an outcome is non-constant, often exhibiting "change points" or thresholds. For instance, the impact of experience on professional salaries may shift significantly after a certain tenure. While standard linear regression focuses on mean relationships, it often fails to capture dynamics at the distributional extremes.
The cthreshER R package implements specialized tools for continuous threshold expectile regression. Expectile regression, an alternative to quantile regression based on asymmetric least squares, offers computational efficiency and sensitivity to outlier magnitudes. This package specifically addresses models where the regression function is required to be continuous at the threshold, providing a realistic framework for various empirical applications.
Methodology
Estimation via cterFit
The primary estimation function, cterFit, identifies the optimal threshold using a grid search algorithm. Since threshold parameters are non-differentiable, gradient-based optimization is unsuitable. The grid search minimizes the asymmetric least squares loss for a specified expectile level (tau).
As shown in the function arguments, cterFit requires a response vector (y), a scalar covariate with a threshold (x), and optional additional covariates (z). Users can specify the target expectile level (tau), with a default of 0.5, corresponding to the mean in symmetric distributions.
Hypothesis Testing with cterTest
To ensure that identified thresholds are statistically significant rather than artifacts of noise, the package includes cterTest. This function addresses Davies’ Problem—where the threshold parameter is only identified under the alternative hypothesis—by employing a wild bootstrap method. This approach allows researchers to test the null hypothesis of a simple linear model against the alternative of a continuous threshold model.
Data Simulation using cterSimData
The package provides a robust simulation engine, cterSimData, to validate estimation and testing procedures.
The simulation tool supports both IID and heteroscedastic model types. It allows for various error distributions, including Normal, t-distributions, and contaminated mixtures, enabling comprehensive sensitivity analysis and method validation.
Empirical Application: Baseball Salaries
The package includes the data_bbsalaries dataset, containing 1987 salary data for 176 baseball pitchers. By modeling the log of base salary against years of experience, cthreshER can identify specific "break points" in career earnings. This application demonstrates the package's ability to provide a more detailed economic profile than standard linear models, highlighting how the "return on experience" changes over a player's career.
Conclusion and Future Directions
The cthreshER package provides a rigorous framework for continuous threshold modeling within an expectile regression context. By enforcing continuity at the join point, it offers a physically and economically realistic modeling approach. While the current version (1.1.0) is optimized for a single threshold in a single scalar covariate, it establishes a foundation for future extensions into multi-threshold models and high-dimensional data environments.
Summary updated