Shujie Ma
;
Jeffrey S. Racine
;
Lijian Yang

spline regression in the presence of categorical predictors (replication data)

We consider the problem of estimating a relationship nonparametrically using regression splines when there exist both continuous and categorical predictors. We combine the global properties of regression splines with the local properties of categorical kernel functions to handle the presence of categorical predictors rather than resorting to sample splitting as is typically done to accommodate their presence. The resulting estimator possesses substantially better finite-sample performance than either its frequency-based peer or cross-validated local linear kernel regression or even additive regression splines (when additivity does not hold). Theoretical underpinnings are provided and Monte Carlo simulations are undertaken to assess finite-sample behavior; and two illustrative applications are provided. An implementation in R is available; see the R package crs for details.

Data and Resources

Suggested Citation

Ma, Shujie; Racine, Jeffrey S.; Yang, Lijian (2015): Spline Regression in the Presence of Categorical Predictors (replication data). Version: 1. Journal of Applied Econometrics. Dataset. http://dx.doi.org/10.15456/jae.2022321.0722513549