The crs Package: Nonparametric Regression Splines for Continuous and Categorical Predictors

A new package crs is introduced for computing nonparametric regression (and quantile) splines in the presence of both continuous and categorical predictors. B-splines are employed in the regression model for the continuous predictors and kernel weighting is employed for the categorical predictors. We also develop a simple R interface to NOMAD, which is a mixed integer optimization solver used to compute optimal regression spline solutions.

Zhenghua Nie , Jeffrey S. Racine
2012-12-01

CRAN packages used

crs, SemiPar, mgcv, gss, gam, MASS, rgl

CRAN Task Views implied by cited packages

SocialSciences, Econometrics, Environmetrics, Multivariate, Bayesian, Distributions, Graphics, NumericalMathematics, Optimization, Pharmacokinetics, Psychometrics, Robust, SpatioTemporal, Survival

Reuse

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 ...".

Citation

For attribution, please cite this work as

Nie & Racine, "The crs Package: Nonparametric Regression Splines for Continuous and Categorical Predictors", The R Journal, 2012

BibTeX citation

@article{RJ-2012-012,
  author = {Nie, Zhenghua and Racine, Jeffrey S.},
  title = {The crs Package: Nonparametric Regression Splines for Continuous and Categorical Predictors},
  journal = {The R Journal},
  year = {2012},
  note = {https://doi.org/10.32614/RJ-2012-012},
  doi = {10.32614/RJ-2012-012},
  volume = {4},
  issue = {2},
  issn = {2073-4859},
  pages = {48-56}
}